cssbundling-rails 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5be53848365bc063ba001b88c7e2f125b8f434dc0dff7b2bd2046cefeada38d
4
- data.tar.gz: 45502e231a93390c1fea3dccc6cb345b3ea63f1e57754906dc5c344a66fed61a
3
+ metadata.gz: 156d3acba9a6ae3277c785473df2fbae9d70d7f8ef482788e06f31374b9d5e86
4
+ data.tar.gz: 1f893bd6b9c04efae1b03206f41fd4bb85c38c7bca0728f7c9cc3daf105c8572
5
5
  SHA512:
6
- metadata.gz: 5ce45e6fcfcf1262f4075f2e2729b0ac538e7e97a483f18547a04084e9b5444e07adb4e92f2aa88a73fe0b3b26aac5755335be7eb040dae6cc48bb0fa1487e67
7
- data.tar.gz: 7474397e610d94244b003e444342623b4d148f49f9a436775f63da856043d6c120be1d6ac9d316f6f559b6813eefc6b23c880b22450f155b9902ee3c61ca653b
6
+ metadata.gz: f9e77967312dddbdee8ece958f1c612c02ff3a868be263842fd31ae430d0891be6ac185ade5e58f62cad5ca6251838b92d103c5471a8cc42bf31a082c46f04c1
7
+ data.tar.gz: b1345501f2328db87ba56d29572533fca2e93047eac2667c7ce6a8afd7d32306a03bbe05c8a2198c84f9a2bdad6908c2a4e116411a047623d2f702ccad6ace13
@@ -1,3 +1,3 @@
1
1
  module Cssbundling
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -46,7 +46,7 @@ else
46
46
  say "Add default Procfile.dev"
47
47
  copy_file "#{__dir__}/Procfile.dev", "Procfile.dev"
48
48
 
49
- say "Ensure foreman is install"
49
+ say "Ensure foreman is installed"
50
50
  run "gem install foreman"
51
51
  end
52
52
 
@@ -1,7 +1,7 @@
1
- say "Install PostCSS w/ postcss-preset-env"
1
+ say "Install PostCSS w/ nesting and autoprefixer"
2
2
  copy_file "#{__dir__}/postcss.config.js", "postcss.config.js"
3
3
  copy_file "#{__dir__}/application.postcss.css", "app/assets/stylesheets/application.postcss.css"
4
- run "yarn add postcss postcss-cli postcss-preset-env"
4
+ run "yarn add postcss postcss-cli postcss-nesting autoprefixer"
5
5
 
6
6
  say "Add build:css script"
7
7
  run %(npm set-script build:css "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css")
@@ -1,10 +1,6 @@
1
1
  module.exports = {
2
2
  plugins: [
3
- require('postcss-preset-env')({
4
- stage: 2,
5
- features: {
6
- 'nesting-rules': true
7
- }
8
- })
3
+ require('postcss-nesting'),
4
+ require('autoprefixer'),
9
5
  ],
10
6
  }
@@ -1,7 +1,9 @@
1
1
  namespace :css do
2
2
  desc "Build your CSS bundle"
3
3
  task :build do
4
- system "yarn install && yarn build:css"
4
+ unless system "yarn install && yarn build:css"
5
+ raise "cssbundling-rails: Command css:build failed, ensure yarn is installed and `yarn build:css` runs without errors"
6
+ end
5
7
  end
6
8
  end
7
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cssbundling-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-21 00:00:00.000000000 Z
12
+ date: 2021-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties