-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated CSS tooling. Introduce postcss. #1113
Remove deprecated CSS tooling. Introduce postcss. #1113
Conversation
We might also want to explore removing the following Gems from gem "jsbundling-rails"
gem "cssbundling-rails" |
something to consider tomorrow (today? when are you reading this anyway?) deleting template/descriptions/stylesheet_base.md the tests that are failing because they expect to see bourbon in the gemfile.. I think we can just get rid of those, I thought briefly about reversing their polarity to test that bourbon and bitters aren't installed but I talked myself out of it. |
07483b5
to
4eb5ee8
Compare
4eb5ee8
to
96f0284
Compare
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<%%= csrf_meta_tags %> | ||
<%%= csp_meta_tag %> | ||
|
||
<%%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> | ||
<%%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generated a new Rails app without suspenders, and this is what was in application.html.erb
.
rails g new_app -c=postcss
templates/Gemfile.erb
Outdated
@@ -28,7 +25,8 @@ gem "tzinfo-data", platforms: [:mingw, :x64_mingw, :mswin, :jruby] | |||
<%# gem "webpacker" %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should just remove this now.
it "adds and configures a bundler strategy for css and js" do | ||
gemfile = read_project_file("Gemfile") | ||
|
||
expect(gemfile).to match(/bourbon/) | ||
expect(gemfile).to match(/cssbundling-rails/) | ||
expect(gemfile).to match(/jsbundling-rails/) | ||
expect(File).to exist("#{project_path}/postcss.config.js") | ||
expect(File).to exist("#{project_path}/package.json") | ||
expect(File).to exist("#{project_path}/bin/dev") | ||
expect(File).to exist("#{project_path}/app/assets/stylesheets/application.postcss.css") | ||
expect(File).to exist("#{project_path}/app/javascript/application.js") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures the --css=postcss
flag did its job.
A future commit should explore if we can remove the Gem all together.
We will probably want to re-order these later
<% if options[:api] %> | ||
gem "sprockets", "< 4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this for API only mode #1117
🚧 Work in progress
./bin/dev
script #1108✅ To-do
css
option