cssbundling-rails 0.2.3 → 0.2.4

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: 156d3acba9a6ae3277c785473df2fbae9d70d7f8ef482788e06f31374b9d5e86
4
- data.tar.gz: 1f893bd6b9c04efae1b03206f41fd4bb85c38c7bca0728f7c9cc3daf105c8572
3
+ metadata.gz: 2327f824df0a60b8114f3834b29a7d20b005bb2645d98083772ca1fa622b8d8c
4
+ data.tar.gz: 1bf817470b20cbe122c67a3b502ebdea182a7c526073b0059f05b6c262af5203
5
5
  SHA512:
6
- metadata.gz: f9e77967312dddbdee8ece958f1c612c02ff3a868be263842fd31ae430d0891be6ac185ade5e58f62cad5ca6251838b92d103c5471a8cc42bf31a082c46f04c1
7
- data.tar.gz: b1345501f2328db87ba56d29572533fca2e93047eac2667c7ce6a8afd7d32306a03bbe05c8a2198c84f9a2bdad6908c2a4e116411a047623d2f702ccad6ace13
6
+ metadata.gz: c01ddba4ef303e6a03f59480709003950deeaad59238d7afd974009fa18914e872be4aa19ddd2ba7c976124bc06aad5f3fc6016e98672b4162feed7016e06826
7
+ data.tar.gz: cd093d2443110526f411698cbbabab0e222e3c81221f6a95139a04ef8bd0197d70de9a27aa8081ae3010e33888e1e5207c2bd693fa7a4bc1b70c432bd6af66b3
@@ -1,3 +1,3 @@
1
1
  module Cssbundling
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -11,4 +11,10 @@ else
11
11
  end
12
12
 
13
13
  say "Add build:css script"
14
- run %(npm set-script build:css "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules")
14
+ build_script = "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules"
15
+
16
+ if (`npx -v`.to_f < 7.1 rescue "Missing")
17
+ say %(Add "scripts": { "build:css": "#{build_script}" to your package.json), :green
18
+ else
19
+ run %(npm set-script build:css "#{build_script}")
20
+ end
@@ -4,4 +4,10 @@ copy_file "#{__dir__}/application.bulma.scss",
4
4
  run "yarn add sass bulma"
5
5
 
6
6
  say "Add build:css script"
7
- run %(npm set-script build:css "sass ./app/assets/stylesheets/application.bulma.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules")
7
+ build_script = "sass ./app/assets/stylesheets/application.bulma.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules"
8
+
9
+ if (`npx -v`.to_f < 7.1 rescue "Missing")
10
+ say %(Add "scripts": { "build:css": "#{build_script}" to your package.json), :green
11
+ else
12
+ run %(npm set-script build:css "#{build_script}")
13
+ end
@@ -4,4 +4,10 @@ copy_file "#{__dir__}/application.postcss.css", "app/assets/stylesheets/applicat
4
4
  run "yarn add postcss postcss-cli postcss-nesting autoprefixer"
5
5
 
6
6
  say "Add build:css script"
7
- run %(npm set-script build:css "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css")
7
+ build_script = "postcss ./app/assets/stylesheets/application.postcss.css -o ./app/assets/builds/application.css"
8
+
9
+ if (`npx -v`.to_f < 7.1 rescue "Missing")
10
+ say %(Add "scripts": { "build:css": "#{build_script}" to your package.json), :green
11
+ else
12
+ run %(npm set-script build:css "#{build_script}")
13
+ end
@@ -3,4 +3,10 @@ copy_file "#{__dir__}/application.sass.scss", "app/assets/stylesheets/applicatio
3
3
  run "yarn add sass"
4
4
 
5
5
  say "Add build:css script"
6
- run %(npm set-script build:css "sass ./app/assets/stylesheets/application.sass.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules")
6
+ build_script = "sass ./app/assets/stylesheets/application.sass.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules"
7
+
8
+ if (`npx -v`.to_f < 7.1 rescue "Missing")
9
+ say %(Add "scripts": { "build:css": "#{build_script}" to your package.json), :green
10
+ else
11
+ run %(npm set-script build:css "#{build_script}")
12
+ end
@@ -4,4 +4,10 @@ copy_file "#{__dir__}/application.tailwind.css", "app/assets/stylesheets/applica
4
4
  run "yarn add tailwindcss@latest postcss@latest autoprefixer@latest"
5
5
 
6
6
  say "Add build:css script"
7
- run %(npm set-script build:css "tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css")
7
+ build_script = "tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css"
8
+
9
+ if (`npx -v`.to_f < 7.1 rescue "Missing")
10
+ say %(Add "scripts": { "build:css": "#{build_script}" to your package.json), :green
11
+ else
12
+ run %(npm set-script build:css "#{build_script}")
13
+ end
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.3
4
+ version: 0.2.4
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-28 00:00:00.000000000 Z
12
+ date: 2021-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties