File tree Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 11require_relative "../helpers"
22self . extend Helpers
33
4+ apply "#{ __dir__ } /../install.rb"
5+
46say "Install Bootstrap with Bootstrap Icons, Popperjs/core and Autoprefixer"
57copy_file "#{ __dir__ } /application.bootstrap.scss" ,
68 "app/assets/stylesheets/application.bootstrap.scss"
Original file line number Diff line number Diff line change 11require_relative "../helpers"
22self . extend Helpers
33
4+ apply "#{ __dir__ } /../install.rb"
5+
46say "Install Bulma"
57copy_file "#{ __dir__ } /application.bulma.scss" ,
68 "app/assets/stylesheets/application.bulma.scss"
Original file line number Diff line number Diff line change 11require_relative "../helpers"
22self . extend Helpers
33
4+ apply "#{ __dir__ } /../install.rb"
5+
46say "Install PostCSS w/ nesting and autoprefixer"
57copy_file "#{ __dir__ } /postcss.config.js" , "postcss.config.js"
68copy_file "#{ __dir__ } /application.postcss.css" , "app/assets/stylesheets/application.postcss.css"
Original file line number Diff line number Diff line change 11require_relative "../helpers"
22self . extend Helpers
33
4+ apply "#{ __dir__ } /../install.rb"
5+
46say "Install Sass"
57copy_file "#{ __dir__ } /application.sass.scss" , "app/assets/stylesheets/application.sass.scss"
68run "#{ bundler_cmd } add sass"
Original file line number Diff line number Diff line change 11require_relative "../helpers"
22self . extend Helpers
33
4+ apply "#{ __dir__ } /../install.rb"
5+
46say "Install Tailwind (+PostCSS w/ autoprefixer)"
57copy_file "#{ __dir__ } /tailwind.config.js" , "tailwind.config.js"
68copy_file "#{ __dir__ } /application.tailwind.css" , "app/assets/stylesheets/application.tailwind.css"
Original file line number Diff line number Diff line change 11namespace :css do
22 namespace :install do
3- desc "Install shared elements for all bundlers"
4- task :shared do
5- system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../../install/install.rb" , __dir__ ) } "
6- end
7-
83 desc "Install Tailwind"
9- task tailwind : "css:install:shared" do
4+ task :tailwind do
105 system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../../install/tailwind/install.rb" , __dir__ ) } "
116 end
127
138 desc "Install PostCSS"
14- task postcss : "css:install:shared" do
9+ task :postcss do
1510 system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../../install/postcss/install.rb" , __dir__ ) } "
1611 end
1712
1813 desc "Install Sass"
19- task sass : "css:install:shared" do
14+ task :sass do
2015 system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../../install/sass/install.rb" , __dir__ ) } "
2116 end
2217
2318 desc "Install Bootstrap"
24- task bootstrap : "css:install:shared" do
19+ task :bootstrap do
2520 system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../../install/bootstrap/install.rb" , __dir__ ) } "
2621 end
2722
2823 desc "Install Bulma"
29- task bulma : "css:install:shared" do
24+ task :bulma do
3025 system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../../install/bulma/install.rb" , __dir__ ) } "
3126 end
3227 end
You can’t perform that action at this time.
0 commit comments