jsbundling-rails 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c0462a5cd60b4d9f11d5f1b422675b6e2057a05389833bd81246d3242847dfe
4
- data.tar.gz: 847fd31b04ad34182e10dcf4e5157055dafae83bcf13c435cd6ee4cea7fcf440
3
+ metadata.gz: da26b732da73b487d5947d452d49b253b7dc19b134a213c14295085f38ac960f
4
+ data.tar.gz: 5070afe7f7681941291659451972f8dcaad1a5bb25e34edac521b8a540e54012
5
5
  SHA512:
6
- metadata.gz: 954a585f3da1bd9e957698438462b977539cf6ba59fa2957f9d4fd4e277d6284ce197138af964eef32bff893b4567b227fb6812b28b2a48eb2bee48702303828
7
- data.tar.gz: 924e4d2a47c5bbed32f848264ecb8cb67e39e899c8d25e647ca110dec7dfa142c3a7228678da4492f8fceb511f6a4c3ce638d18181783f2efa1b0125bd8a5a27
6
+ metadata.gz: bbc6ce778dc63da90bec9217ba2f869bcf04453160f63106f357a1cc967f1dede7828cdc04f852ae1187d4208faf95b7ab4295043afeafe2b70e6a187cf03ee2
7
+ data.tar.gz: 5d7b9e5b4cd21f408c9b657bcaa62401769e249c617980781a33b6445178e34777db17b6db5079589064697faaa8dd4b3f05e3384c3f5bb5e63f86caf19b0636
data/README.md CHANGED
@@ -38,7 +38,7 @@ The default build script for esbuild relies on the `app/javascript/*.*` glob pat
38
38
 
39
39
  ## Why does esbuild overwrite my application.css?
40
40
 
41
- If you [import CSS](https://esbuild.github.io/content-types/#css-from-js) in your application.js while using esbuild, you'll be creating both an `app/assets/builds/application.js` _and_ `app/assets/builds/application.css` file when bundling. The latter can conflict with the `app/assets/builds/application.js` produced by [cssbundling-rails](https://github.com/rails/cssbundling-rails). The solution is to either change the output file for esbuild (and the references for that) or for cssbundling. Both are specified in `package.json`.
41
+ If you [import CSS](https://esbuild.github.io/content-types/#css-from-js) in your application.js while using esbuild, you'll be creating both an `app/assets/builds/application.js` _and_ `app/assets/builds/application.css` file when bundling. The latter can conflict with the `app/assets/builds/application.css` produced by [cssbundling-rails](https://github.com/rails/cssbundling-rails). The solution is to either change the output file for esbuild (and the references for that) or for cssbundling. Both are specified in `package.json`.
42
42
 
43
43
 
44
44
  ## License
@@ -8,4 +8,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
8
8
  say %(Add "scripts": { "build": "#{build_script}" } to your package.json), :green
9
9
  else
10
10
  run %(npm set-script build "#{build_script}")
11
+ run %(yarn build)
11
12
  end
@@ -9,4 +9,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
9
9
  say %(Add "scripts": { "build": "#{build_script}" } to your package.json), :green
10
10
  else
11
11
  run %(npm set-script build "#{build_script}")
12
+ run %(yarn build)
12
13
  end
@@ -9,4 +9,5 @@ if (`npx -v`.to_f < 7.1 rescue "Missing")
9
9
  say %(Add "scripts": { "build": "#{build_script}" } to your package.json), :green
10
10
  else
11
11
  run %(npm set-script build "#{build_script}")
12
+ run %(yarn build)
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Jsbundling
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -4,3 +4,5 @@ namespace :javascript do
4
4
  rm_rf Dir["app/assets/builds/[^.]*.js"], verbose: false
5
5
  end
6
6
  end
7
+
8
+ Rake::Task["assets:clobber"].enhance(["javascript:clobber"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsbundling-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2021-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties