Skip to content

Commit d6b791a

Browse files
committed
bridgetown new
1 parent b3d926a commit d6b791a

25 files changed

+1880
-74
lines changed

.gitignore

+34-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
1-
.bundle/
2-
bin/
3-
tmp/
1+
# Bridgetown
2+
output
3+
.bridgetown-cache
4+
.bridgetown-metadata
5+
.bridgetown-webpack
46

7+
# Dependency folders
8+
node_modules
9+
bower_components
10+
vendor
11+
12+
# Caches
13+
.sass-cache
14+
.npm
15+
.node_repl_history
16+
17+
# Ignore bundler config.
18+
/.bundle
19+
20+
# Ignore Byebug command history file.
21+
.byebug_history
22+
23+
# dotenv environment variables file
24+
.env
25+
26+
# Mac files
27+
.DS_Store
28+
29+
# Yarn
30+
yarn-error.log
31+
yarn-debug.log*
32+
.pnp/
33+
.pnp.js
34+
# Yarn Integrity file
35+
.yarn-integrity

Gemfile

+21-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
# frozen_string_literal: true
2-
31
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
43
ruby "2.7.4"
54

6-
gem "sinatra"
7-
gem "thin"
5+
# Hello! This is where you manage which Bridgetown version is used to run.
6+
# When you want to use a different version, change it below, save the
7+
# file and run `bundle install`. Run Bridgetown like so:
8+
#
9+
# bin/bridgetown start (or console, etc.)
10+
#
11+
# This will help ensure the proper Bridgetown version is running.
12+
#
13+
# To install a plugin, simply run bundle add and specify the group
14+
# "bridgetown_plugins". For example:
15+
#
16+
# bundle add some-new-plugin -g bridgetown_plugins
17+
#
18+
# Happy Bridgetowning!
19+
20+
gem "bridgetown", "~> 1.0.0.alpha10"
21+
22+
# Puma is a Rack-compatible server
23+
# (you can optionally limit this to the "development" group)
24+
gem "puma", "~> 5.2"
825

926
gem "activesupport"
1027
gem "holidays"
1128
gem "icalendar"
12-
gem "platform-api" # Heroku
13-
14-
group :development do
15-
gem "standard"
16-
end

Gemfile.lock

+101-61
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,135 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
activemodel (6.1.4.1)
5+
activesupport (= 6.1.4.1)
46
activesupport (6.1.4.1)
57
concurrent-ruby (~> 1.0, >= 1.0.2)
68
i18n (>= 1.6, < 2)
79
minitest (>= 5.1)
810
tzinfo (~> 2.0)
911
zeitwerk (~> 2.3)
10-
ast (2.4.1)
12+
addressable (2.8.0)
13+
public_suffix (>= 2.0.2, < 5.0)
14+
amazing_print (1.4.0)
15+
bridgetown (1.0.0.alpha10)
16+
bridgetown-builder (= 1.0.0.alpha10)
17+
bridgetown-core (= 1.0.0.alpha10)
18+
bridgetown-paginate (= 1.0.0.alpha10)
19+
bridgetown-builder (1.0.0.alpha10)
20+
bridgetown-core (= 1.0.0.alpha10)
21+
bridgetown-core (1.0.0.alpha10)
22+
activemodel (~> 6.0)
23+
activesupport (~> 6.0)
24+
addressable (~> 2.4)
25+
amazing_print (~> 1.2)
26+
colorator (~> 1.0)
27+
erubi (~> 1.9)
28+
faraday (~> 1.0)
29+
faraday_middleware (~> 1.0)
30+
hash_with_dot_access (~> 1.0)
31+
i18n (~> 1.0)
32+
kramdown (~> 2.1)
33+
kramdown-parser-gfm (~> 1.0)
34+
liquid (~> 5.0)
35+
listen (~> 3.0)
36+
rack-indifferent (>= 1.2.0)
37+
rake (>= 13.0)
38+
roda (~> 3.46)
39+
rouge (~> 3.0)
40+
serbea (~> 1.0)
41+
terminal-table (~> 1.8)
42+
thor (~> 1.1)
43+
tilt (~> 2.0)
44+
webrick (~> 1.7)
45+
zeitwerk (~> 2.5)
46+
bridgetown-paginate (1.0.0.alpha10)
47+
bridgetown-core (= 1.0.0.alpha10)
48+
colorator (1.1.0)
1149
concurrent-ruby (1.1.9)
12-
daemons (1.3.1)
13-
erubis (2.7.0)
14-
eventmachine (1.2.7)
15-
excon (0.75.0)
16-
heroics (0.1.1)
17-
erubis (~> 2.0)
18-
excon
19-
moneta
20-
multi_json (>= 1.9.2)
50+
erubi (1.10.0)
51+
faraday (1.8.0)
52+
faraday-em_http (~> 1.0)
53+
faraday-em_synchrony (~> 1.0)
54+
faraday-excon (~> 1.1)
55+
faraday-httpclient (~> 1.0.1)
56+
faraday-net_http (~> 1.0)
57+
faraday-net_http_persistent (~> 1.1)
58+
faraday-patron (~> 1.0)
59+
faraday-rack (~> 1.0)
60+
multipart-post (>= 1.2, < 3)
61+
ruby2_keywords (>= 0.0.4)
62+
faraday-em_http (1.0.0)
63+
faraday-em_synchrony (1.0.0)
64+
faraday-excon (1.1.0)
65+
faraday-httpclient (1.0.1)
66+
faraday-net_http (1.0.1)
67+
faraday-net_http_persistent (1.2.0)
68+
faraday-patron (1.0.0)
69+
faraday-rack (1.0.0)
70+
faraday_middleware (1.2.0)
71+
faraday (~> 1.0)
72+
ffi (1.15.4)
73+
hash_with_dot_access (1.1.0)
74+
activesupport (>= 5.0.0, < 7.0)
2175
holidays (8.4.1)
2276
i18n (1.8.11)
2377
concurrent-ruby (~> 1.0)
24-
icalendar (2.6.1)
78+
icalendar (2.7.1)
2579
ice_cube (~> 0.16)
26-
ice_cube (0.16.3)
80+
ice_cube (0.16.4)
81+
kramdown (2.3.1)
82+
rexml
83+
kramdown-parser-gfm (1.1.0)
84+
kramdown (~> 2.0)
85+
liquid (5.1.0)
86+
listen (3.7.0)
87+
rb-fsevent (~> 0.10, >= 0.10.3)
88+
rb-inotify (~> 0.9, >= 0.9.10)
2789
minitest (5.14.4)
28-
moneta (1.0.0)
29-
multi_json (1.15.0)
30-
mustermann (1.1.1)
31-
ruby2_keywords (~> 0.0.1)
32-
parallel (1.19.2)
33-
parser (2.7.1.4)
34-
ast (~> 2.4.1)
35-
platform-api (3.0.0)
36-
heroics (~> 0.1.1)
37-
moneta (~> 1.0.0)
38-
rate_throttle_client (~> 0.1.0)
90+
multipart-post (2.1.1)
91+
nio4r (2.5.8)
92+
public_suffix (4.0.6)
93+
puma (5.5.2)
94+
nio4r (~> 2.0)
3995
rack (2.2.3)
40-
rack-protection (2.0.8.1)
96+
rack-indifferent (1.2.0)
97+
rack (>= 1.5)
98+
rake (13.0.6)
99+
rb-fsevent (0.11.0)
100+
rb-inotify (0.10.1)
101+
ffi (~> 1.0)
102+
rexml (3.2.5)
103+
roda (3.50.0)
41104
rack
42-
rainbow (3.0.0)
43-
rate_throttle_client (0.1.2)
44-
regexp_parser (1.7.1)
45-
rexml (3.2.4)
46-
rubocop (0.85.1)
47-
parallel (~> 1.10)
48-
parser (>= 2.7.0.1)
49-
rainbow (>= 2.2.2, < 4.0)
50-
regexp_parser (>= 1.7)
51-
rexml
52-
rubocop-ast (>= 0.0.3)
53-
ruby-progressbar (~> 1.7)
54-
unicode-display_width (>= 1.4.0, < 2.0)
55-
rubocop-ast (0.1.0)
56-
parser (>= 2.7.0.1)
57-
rubocop-performance (1.6.1)
58-
rubocop (>= 0.71.0)
59-
ruby-progressbar (1.10.1)
60-
ruby2_keywords (0.0.2)
61-
sinatra (2.0.8.1)
62-
mustermann (~> 1.0)
63-
rack (~> 2.0)
64-
rack-protection (= 2.0.8.1)
105+
rouge (3.26.1)
106+
ruby2_keywords (0.0.5)
107+
serbea (1.0.1)
108+
activesupport (>= 6.0)
109+
erubi (>= 1.10)
65110
tilt (~> 2.0)
66-
standard (0.4.7)
67-
rubocop (~> 0.85.0)
68-
rubocop-performance (~> 1.6.0)
69-
thin (1.7.2)
70-
daemons (~> 1.0, >= 1.0.9)
71-
eventmachine (~> 1.0, >= 1.0.4)
72-
rack (>= 1, < 3)
111+
terminal-table (1.8.0)
112+
unicode-display_width (~> 1.1, >= 1.1.1)
113+
thor (1.1.0)
73114
tilt (2.0.10)
74115
tzinfo (2.0.4)
75116
concurrent-ruby (~> 1.0)
76-
unicode-display_width (1.7.0)
117+
unicode-display_width (1.8.0)
118+
webrick (1.7.0)
77119
zeitwerk (2.5.1)
78120

79121
PLATFORMS
80-
ruby
122+
x86_64-linux
81123

82124
DEPENDENCIES
83125
activesupport
126+
bridgetown (~> 1.0.0.alpha10)
84127
holidays
85128
icalendar
86-
platform-api
87-
sinatra
88-
standard
89-
thin
129+
puma (~> 5.2)
90130

91131
RUBY VERSION
92132
ruby 2.7.4p191
93133

94134
BUNDLED WITH
95-
2.1.4
135+
2.2.30

Procfile

-1
This file was deleted.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ A quick and dirty webapp that provides calendar URLs for canadian
22
statutory holidays in ICS format.
33

44
View (and use) it live at http://canadastat.herokuapp.com/
5+
6+
Built with [Bridgetown](https://bridgetownrb.com/)!

Rakefile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
require "bridgetown"
2+
3+
Bridgetown.load_tasks
4+
5+
# Run rake without specifying any command to execute a deploy build by default.
6+
task default: :deploy
7+
8+
#
9+
# Standard set of tasks, which you can customize if you wish:
10+
#
11+
desc "Build the Bridgetown site for deployment"
12+
task :deploy => [:clean, "frontend:build"] do
13+
Bridgetown::Commands::Build.start
14+
end
15+
16+
desc "Build the site in a test environment"
17+
task :test do
18+
ENV["BRIDGETOWN_ENV"] = "test"
19+
Bridgetown::Commands::Build.start
20+
end
21+
22+
desc "Runs the clean command"
23+
task :clean do
24+
Bridgetown::Commands::Clean.start
25+
end
26+
27+
namespace :frontend do
28+
desc "Build the frontend with Webpack for deployment"
29+
task :build do
30+
sh "yarn run webpack-build"
31+
end
32+
33+
desc "Watch the frontend with Webpack during development"
34+
task :dev do
35+
sh "yarn run webpack-dev --color"
36+
rescue Interrupt
37+
end
38+
end
39+
40+
#
41+
# Add your own Rake tasks here! You can use `environment` as a prerequisite
42+
# in order to write automations or other commands requiring a loaded site.
43+
#
44+
# task :my_task => :environment do
45+
# puts site.root_dir
46+
# automation do
47+
# say_status :rake, "I'm a Rake tast =) #{site.config.url}"
48+
# end
49+
# end

bin/bridgetown

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'bridgetown' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "pathname"
12+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13+
Pathname.new(__FILE__).realpath)
14+
15+
bundle_binstub = File.expand_path("../bundle", __FILE__)
16+
17+
if File.file?(bundle_binstub)
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19+
load(bundle_binstub)
20+
else
21+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23+
end
24+
end
25+
26+
require "rubygems"
27+
require "bundler/setup"
28+
29+
load Gem.bin_path("bridgetown-core", "bridgetown")

bin/bt

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'bridgetown' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "pathname"
12+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13+
Pathname.new(__FILE__).realpath)
14+
15+
bundle_binstub = File.expand_path("../bundle", __FILE__)
16+
17+
if File.file?(bundle_binstub)
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19+
load(bundle_binstub)
20+
else
21+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23+
end
24+
end
25+
26+
require "rubygems"
27+
require "bundler/setup"
28+
29+
load Gem.bin_path("bridgetown-core", "bridgetown")

0 commit comments

Comments
 (0)