-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c934b04
Showing
41 changed files
with
2,589 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,36 @@ | ||
# Bridgetown | ||
output | ||
.bridgetown-cache | ||
.bridgetown-metadata | ||
.bridgetown-webpack | ||
.routes.json | ||
|
||
# Dependency folders | ||
node_modules | ||
bower_components | ||
vendor | ||
|
||
# Caches | ||
.sass-cache | ||
.npm | ||
.node_repl_history | ||
|
||
# Ignore bundler config. | ||
/.bundle | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Yarn | ||
yarn-error.log | ||
yarn-debug.log* | ||
.pnp/ | ||
.pnp.js | ||
# Yarn Integrity file | ||
.yarn-integrity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
ruby-3.3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,36 @@ | ||
source "https://rubygems.org" | ||
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
||
#### | ||
# Welcome to your project's Gemfile, used by Rubygems & Bundler. | ||
# | ||
# To install a plugin, run: | ||
# | ||
# bundle add new-plugin-name -g bridgetown_plugins | ||
# | ||
# This will ensure the plugin is added to the correct Bundler group. | ||
# | ||
# When you run Bridgetown commands, we recommend using a binstub like so: | ||
# | ||
# bin/bridgetown start (or console, etc.) | ||
# | ||
# This will help ensure the proper Bridgetown version is running. | ||
#### | ||
|
||
# If you need to upgrade/switch Bridgetown versions, change the line below | ||
# and then run `bundle update bridgetown` | ||
gem "bridgetown", "~> 1.3.4" | ||
|
||
# Uncomment to add file-based dynamic routing to your project: | ||
# gem "bridgetown-routes", "~> 1.3.4" | ||
|
||
# Puma is the Rack-compatible web server used by Bridgetown | ||
# (you can optionally limit this to the "development" group) | ||
gem "puma", "< 7" | ||
|
||
# Uncomment to use the Inspectors API to manipulate the output | ||
# of your HTML or XML resources: | ||
# gem "nokogiri", "~> 1.13" | ||
|
||
# Or for faster parsing of HTML-only resources via Inspectors, use Nokolexbor: | ||
# gem "nokolexbor", "~> 0.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,140 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activemodel (7.2.2.1) | ||
activesupport (= 7.2.2.1) | ||
activesupport (7.2.2.1) | ||
base64 | ||
benchmark (>= 0.3) | ||
bigdecimal | ||
concurrent-ruby (~> 1.0, >= 1.3.1) | ||
connection_pool (>= 2.2.5) | ||
drb | ||
i18n (>= 1.6, < 2) | ||
logger (>= 1.4.2) | ||
minitest (>= 5.1) | ||
securerandom (>= 0.3) | ||
tzinfo (~> 2.0, >= 2.0.5) | ||
addressable (2.8.7) | ||
public_suffix (>= 2.0.2, < 7.0) | ||
amazing_print (1.6.0) | ||
base64 (0.2.0) | ||
benchmark (0.4.0) | ||
bigdecimal (3.1.8) | ||
bridgetown (1.3.4) | ||
bridgetown-builder (= 1.3.4) | ||
bridgetown-core (= 1.3.4) | ||
bridgetown-paginate (= 1.3.4) | ||
bridgetown-builder (1.3.4) | ||
bridgetown-core (= 1.3.4) | ||
bridgetown-core (1.3.4) | ||
activemodel (>= 6.0, < 8.0) | ||
activesupport (>= 6.0, < 8.0) | ||
addressable (~> 2.4) | ||
amazing_print (~> 1.2) | ||
colorator (~> 1.0) | ||
csv (~> 3.2) | ||
erubi (~> 1.9) | ||
faraday (~> 2.0) | ||
faraday-follow_redirects (~> 0.3) | ||
hash_with_dot_access (~> 1.2) | ||
i18n (~> 1.0) | ||
kramdown (~> 2.1) | ||
kramdown-parser-gfm (~> 1.0) | ||
liquid (>= 5.0, < 5.5) | ||
listen (~> 3.0) | ||
rake (>= 13.0) | ||
roda (~> 3.46) | ||
rouge (>= 3.0, < 5.0) | ||
serbea (~> 1.0) | ||
thor (~> 1.1) | ||
tilt (~> 2.0) | ||
zeitwerk (~> 2.5) | ||
bridgetown-paginate (1.3.4) | ||
bridgetown-core (= 1.3.4) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.3.4) | ||
connection_pool (2.4.1) | ||
csv (3.3.1) | ||
drb (2.2.1) | ||
erubi (1.13.0) | ||
faraday (2.12.2) | ||
faraday-net_http (>= 2.0, < 3.5) | ||
json | ||
logger | ||
faraday-follow_redirects (0.3.0) | ||
faraday (>= 1, < 3) | ||
faraday-net_http (3.4.0) | ||
net-http (>= 0.5.0) | ||
ffi (1.17.0) | ||
ffi (1.17.0-aarch64-linux-gnu) | ||
ffi (1.17.0-aarch64-linux-musl) | ||
ffi (1.17.0-arm-linux-gnu) | ||
ffi (1.17.0-arm-linux-musl) | ||
ffi (1.17.0-arm64-darwin) | ||
ffi (1.17.0-x86-linux-gnu) | ||
ffi (1.17.0-x86-linux-musl) | ||
ffi (1.17.0-x86_64-darwin) | ||
ffi (1.17.0-x86_64-linux-gnu) | ||
ffi (1.17.0-x86_64-linux-musl) | ||
hash_with_dot_access (1.2.0) | ||
activesupport (>= 5.0.0, < 8.0) | ||
i18n (1.14.6) | ||
concurrent-ruby (~> 1.0) | ||
json (2.9.0) | ||
kramdown (2.5.1) | ||
rexml (>= 3.3.9) | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
liquid (5.4.0) | ||
listen (3.9.0) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
logger (1.6.3) | ||
minitest (5.25.4) | ||
net-http (0.6.0) | ||
uri | ||
nio4r (2.7.4) | ||
public_suffix (6.0.1) | ||
puma (6.5.0) | ||
nio4r (~> 2.0) | ||
rack (3.1.8) | ||
rake (13.2.1) | ||
rb-fsevent (0.11.2) | ||
rb-inotify (0.11.1) | ||
ffi (~> 1.0) | ||
rexml (3.4.0) | ||
roda (3.86.0) | ||
rack | ||
rouge (4.5.1) | ||
securerandom (0.4.1) | ||
serbea (1.0.1) | ||
activesupport (>= 6.0) | ||
erubi (>= 1.10) | ||
tilt (~> 2.0) | ||
thor (1.3.2) | ||
tilt (2.4.0) | ||
tzinfo (2.0.6) | ||
concurrent-ruby (~> 1.0) | ||
uri (1.0.2) | ||
zeitwerk (2.7.1) | ||
|
||
PLATFORMS | ||
aarch64-linux-gnu | ||
aarch64-linux-musl | ||
arm-linux-gnu | ||
arm-linux-musl | ||
arm64-darwin | ||
ruby | ||
x86-linux-gnu | ||
x86-linux-musl | ||
x86_64-darwin | ||
x86_64-linux-gnu | ||
x86_64-linux-musl | ||
|
||
DEPENDENCIES | ||
bridgetown (~> 1.3.4) | ||
puma (< 7) | ||
|
||
BUNDLED WITH | ||
2.5.21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,70 @@ | ||
# Bridgetown Website README | ||
|
||
Welcome to your new Bridgetown website! You can update this README file to provide additional context and setup information for yourself or other contributors. | ||
|
||
## Table of Contents | ||
|
||
- [Prerequisites](#prerequisites) | ||
- [Install](#install) | ||
- [Development](#development) | ||
- [Commands](#commands) | ||
- [Deployment](#deployment) | ||
- [Contributing](#contributing) | ||
|
||
## Prerequisites | ||
|
||
- [GCC](https://gcc.gnu.org/install/) | ||
- [Make](https://www.gnu.org/software/make/) | ||
- [Ruby](https://www.ruby-lang.org/en/downloads/) | ||
- `>= 2.7` | ||
- [Bridgetown Gem](https://rubygems.org/gems/bridgetown) | ||
- `gem install bridgetown -N` | ||
- [Node](https://nodejs.org) | ||
- `>= 12` | ||
- [Yarn](https://yarnpkg.com) | ||
|
||
## Install | ||
|
||
```sh | ||
cd bridgetown-site-folder | ||
bundle install && yarn install | ||
``` | ||
> Learn more: [Bridgetown Getting Started Documentation](https://www.bridgetownrb.com/docs/). | ||
## Development | ||
|
||
To start your site in development mode, run `bin/bridgetown start` and navigate to [localhost:4000](https://localhost:4000/)! | ||
|
||
Use a [theme](https://github.com/topics/bridgetown-theme) or add some [plugins](https://www.bridgetownrb.com/plugins/) to get started quickly. | ||
|
||
### Commands | ||
|
||
```sh | ||
# running locally | ||
bin/bridgetown start | ||
|
||
# build & deploy to production | ||
bin/bridgetown deploy | ||
|
||
# load the site up within a Ruby console (IRB) | ||
bin/bridgetown console | ||
``` | ||
|
||
> Learn more: [Bridgetown CLI Documentation](https://www.bridgetownrb.com/docs/command-line-usage) | ||
## Deployment | ||
|
||
You can deploy Bridgetown sites on hosts like Render or Vercel as well as traditional web servers by simply building and copying the output folder to your HTML root. | ||
|
||
> Read the [Bridgetown Deployment Documentation](https://www.bridgetownrb.com/docs/deployment) for more information. | ||
## Contributing | ||
|
||
If repo is on GitHub: | ||
|
||
1. Fork it | ||
2. Clone the fork using `git clone` to your local development machine. | ||
3. Create your feature branch (`git checkout -b my-new-feature`) | ||
4. Commit your changes (`git commit -am 'Add some feature'`) | ||
5. Push to the branch (`git push origin my-new-feature`) | ||
6. Create a new Pull Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,49 @@ | ||
require "bridgetown" | ||
|
||
Bridgetown.load_tasks | ||
|
||
# Run rake without specifying any command to execute a deploy build by default. | ||
task default: :deploy | ||
|
||
# | ||
# Standard set of tasks, which you can customize if you wish: | ||
# | ||
desc "Build the Bridgetown site for deployment" | ||
task :deploy => [:clean, "frontend:build"] do | ||
Bridgetown::Commands::Build.start | ||
end | ||
|
||
desc "Build the site in a test environment" | ||
task :test do | ||
ENV["BRIDGETOWN_ENV"] = "test" | ||
Bridgetown::Commands::Build.start | ||
end | ||
|
||
desc "Runs the clean command" | ||
task :clean do | ||
Bridgetown::Commands::Clean.start | ||
end | ||
|
||
namespace :frontend do | ||
desc "Build the frontend with esbuild for deployment" | ||
task :build do | ||
sh "yarn run esbuild" | ||
end | ||
|
||
desc "Watch the frontend with esbuild during development" | ||
task :dev do | ||
sh "yarn run esbuild-dev" | ||
rescue Interrupt | ||
end | ||
end | ||
|
||
# | ||
# Add your own Rake tasks here! You can use `environment` as a prerequisite | ||
# in order to write automations or other commands requiring a loaded site. | ||
# | ||
# task :my_task => :environment do | ||
# puts site.root_dir | ||
# automation do | ||
# say_status :rake, "I'm a Rake tast =) #{site.config.url}" | ||
# end | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,27 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'bridgetown' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
|
||
bundle_binstub = File.expand_path("bundle", __dir__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("bridgetown-core", "bridgetown") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,27 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'bridgetown' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
|
||
bundle_binstub = File.expand_path("bundle", __dir__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("bridgetown-core", "bridgetown") |
Oops, something went wrong.