cssbundling-rails 0.2.5 → 1.0.0

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: 17fa9455564f88e8e8ea4034a948bdcd641be3108ac6e9eb8244a2515877971e
4
- data.tar.gz: 87b5fa05bff61fb65e70ada26275be1e807734ad68af54c345dffe9aa6c893fc
3
+ metadata.gz: 1f685e725bac129b8bb2a3bfc069f4c6015e0a406ede20cd444c8325d2585c5d
4
+ data.tar.gz: 631c009e5bae4675a5e0c186af3988052bde74500c7f5220cc8e8d5034d58ed3
5
5
  SHA512:
6
- metadata.gz: 13e364e934c7ef424a5ad2d5f62c593c689185fa333fd283b53173183511bcad112177ec5a46a297f2e8fda06ce3d21616eb70e57df8b245bd5299586494a5d5
7
- data.tar.gz: b03e89051ca7dfd506b4a8a861ea1b81d9979974e84421e62b5a987a61a2b4f60ec0d90fdfee3eefca1c308d022a06040e5604402dbcb6ae0bdc985c55da7789
6
+ metadata.gz: 926234cd4a186306054b1880eecf4d716b1b6209ec5187916738e92259f0a3b026d90bce3e6f1face9723c9159e59625a23c53800516df407c1184396eaf0a16
7
+ data.tar.gz: 376bcaa584131363bb673617e2fbb45ab21c5b61e6cf9483b348327edd32c3b63511d4990e15af9f4d2aad7bf909035602c142e1128c4e9723f0331ab2e3df96
@@ -1,3 +1,3 @@
1
1
  module Cssbundling
2
- VERSION = "0.2.5"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -17,4 +17,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
17
17
  say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :green
18
18
  else
19
19
  run %(npm set-script build:css "#{build_script}")
20
+ run %(yarn build:css)
20
21
  end
@@ -10,4 +10,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
10
10
  say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :green
11
11
  else
12
12
  run %(npm set-script build:css "#{build_script}")
13
+ run %(yarn build:css)
13
14
  end
@@ -10,4 +10,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
10
10
  say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :green
11
11
  else
12
12
  run %(npm set-script build:css "#{build_script}")
13
+ run %(yarn build:css)
13
14
  end
@@ -9,4 +9,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
9
9
  say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :green
10
10
  else
11
11
  run %(npm set-script build:css "#{build_script}")
12
+ run %(yarn build:css)
12
13
  end
@@ -10,4 +10,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
10
10
  say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :green
11
11
  else
12
12
  run %(npm set-script build:css "#{build_script}")
13
+ run %(yarn build:css)
13
14
  end
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
- mode: 'jit',
3
- purge: [
2
+ content: [
4
3
  './app/views/**/*.html.erb',
5
4
  './app/helpers/**/*.rb',
6
5
  './app/javascript/**/*.js'
@@ -1,7 +1,7 @@
1
1
  namespace :css do
2
2
  desc "Build your CSS bundle"
3
- task build: [ "yarn:install" ] do
4
- unless system "yarn build:css"
3
+ task :build do
4
+ unless system "yarn install && yarn build:css"
5
5
  raise "cssbundling-rails: Command css:build failed, ensure yarn is installed and `yarn build:css` runs without errors"
6
6
  end
7
7
  end
@@ -1,8 +1,8 @@
1
1
  namespace :css do
2
2
  desc "Remove CSS builds"
3
- task :clean do
3
+ task :clobber do
4
4
  rm_rf Dir["app/assets/builds/[^.]*.css"], verbose: false
5
5
  end
6
6
  end
7
7
 
8
- Rake::Task["assets:clean"].enhance(["css:clean"])
8
+ Rake::Task["assets:clobber"].enhance(["css:clobber"])
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.5
4
+ version: 1.0.0
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-11-15 00:00:00.000000000 Z
12
+ date: 2021-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -54,7 +54,7 @@ files:
54
54
  - lib/install/tailwind/package.json
55
55
  - lib/install/tailwind/tailwind.config.js
56
56
  - lib/tasks/cssbundling/build.rake
57
- - lib/tasks/cssbundling/clean.rake
57
+ - lib/tasks/cssbundling/clobber.rake
58
58
  - lib/tasks/cssbundling/install.rake
59
59
  homepage: https://github.com/rails/cssbundling-rails
60
60
  licenses:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.22
78
+ rubygems_version: 3.2.32
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Bundle and process CSS with Tailwind, Bootstrap, PostCSS, Sass in Rails via