-
Notifications
You must be signed in to change notification settings - Fork 6
/
rakefile.rb
36 lines (33 loc) · 1.28 KB
/
rakefile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CURRENT_BOOTSTRAP_VERSION = "4.4.1"
CURRENT_TACHYONS_VERSION = "4.7.1"
namespace :fetch do
desc "fetch tachyons scss files"
task :tachyons do
`curl -LkSs https://github.com/tachyons-css/tachyons-sass/archive/v#{CURRENT_TACHYONS_VERSION}.tar.gz | tar xz`
`mv -f ./tachyons-sass-*/scss ./_sass/tachyons-sass`
`mv -f ./tachyons-sass-*/tachyons.scss ./_sass/tachyons-sass`
`rm -rf ./tachyons-sass-*`
end
desc "fetch bootstrap scss files"
task :bootstrap do
target = "_sass/bootstrap/"
`rm -rf #{target}`
`mkdir #{target}`
`curl -LkSs https://github.com/twbs/bootstrap/archive/v#{CURRENT_BOOTSTRAP_VERSION}.tar.gz | tar xz`
`mv -fv ./bootstrap-#{CURRENT_BOOTSTRAP_VERSION}/scss/* ./#{target}`
`rm -rf bootstrap-#{CURRENT_BOOTSTRAP_VERSION}/`
end
end
task :publish do
`JEKYLL_ENV=production bundle exec jekyll build`
`npx staticrypt _site/example-password-page/index.html P@SSW0RD -o _site/example-password-page/index.html`
`netlify deploy --open`
puts "run rake prod:publish to push to PRODUCTION"
end
namespace :prod do
task :publish do
`JEKYLL_ENV=production bundle exec jekyll build`
`npx staticrypt _site/example-password-page/index.html P@SSW0RD -o _site/example-password-page/index.html`
`netlify deploy --prod --open`
end
end