nextgen 0.39.0 → 0.39.1

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: 64c5e668f34c02d81f81c1aab9b65ee6b033b3610b19bfcf8476581cb91175e6
4
- data.tar.gz: 7348ace882c3cde9cef50443b83df5b9a2d1871efede8417625005f422b641b8
3
+ metadata.gz: b870585e56d0c93d1f39947af10edf2eff44856eca5ae7986ecf53607619a142
4
+ data.tar.gz: 635f26513f607c6281100a7c1f29ddca876a133218be6c3ab1c1df4749f414be
5
5
  SHA512:
6
- metadata.gz: dea29586f91a465e1975054ce1001a734f1e2746f4acff882947921a2b24057520b545f9d1a2a6c9b10b742b8167ce4e760a2f2f6c423fab070043573aec4294
7
- data.tar.gz: e278d7e8b0658d7e0d0f54ad2c0ab646906d4fe166e7ef93b7a11a626b21459fc2692ede5c1fe8a1c03fb83a1608e562c84f7c8e3df38747b9d770fab7e08d9a
6
+ metadata.gz: 38f502206672ec466a48091b0c914bdfc6f0a75df2fb47c91f9136768930ae5bf06b5c49778518b20963edcc203486df97743e55bb60ddc5e948439adf1852c2
7
+ data.tar.gz: fd4439ac145209ecf12b5497072a6c30f38de469469a9b53c4aa6d824f85fcc8d59514abf67a26660455cf734d89129bbceae062370fa13357eaa64864a24e7e
@@ -3,7 +3,7 @@
3
3
  module Nextgen
4
4
  module Actions::Javascript
5
5
  def add_js_packages(*packages, dev: false)
6
- command = yarn? ? +"yarn add" : +"npm install --fund=false --audit-false"
6
+ command = yarn? ? +"yarn add" : +"npm install --fund=false"
7
7
  command << " -D" if dev
8
8
  run_js_command "#{command} #{packages.map(&:shellescape).join(" ")}"
9
9
  end
@@ -17,6 +17,7 @@ module Nextgen
17
17
 
18
18
  def add_package_json_scripts(scripts)
19
19
  scripts.each do |name, script|
20
+ script = script.sub(/^yarn run /, "npm run -- ") unless yarn?
20
21
  cmd = "npm pkg set scripts.#{name.to_s.shellescape}=#{script.shellescape}"
21
22
  say_status :run, cmd.truncate(60), :green
22
23
  run! cmd, verbose: false
@@ -2,7 +2,7 @@
2
2
 
3
3
  say_git "Install eslint"
4
4
  add_js_packages(
5
- "@eslint/js",
5
+ "@eslint/js@^9",
6
6
  "eslint@^9",
7
7
  "eslint-config-prettier",
8
8
  "eslint-formatter-compact",
@@ -14,7 +14,7 @@ add_js_packages(
14
14
  )
15
15
  add_package_json_scripts(
16
16
  "lint:js": "eslint 'app/{assets,components,frontend,javascript}/**/*.{cjs,js,jsx,ts,tsx}'",
17
- "fix:js": "npm run -- lint:js --fix",
17
+ "fix:js": "yarn run lint:js --fix",
18
18
  lint: "npm-run-all lint:**",
19
19
  fix: "npm-run-all fix:**"
20
20
  )
@@ -11,7 +11,7 @@ add_js_packages(
11
11
  )
12
12
  add_package_json_scripts(
13
13
  "lint:css": "stylelint 'app/{components,frontend,assets/stylesheets}/**/*.css'",
14
- "fix:css": "npm run -- lint:css --fix",
14
+ "fix:css": "yarn run lint:css --fix",
15
15
  lint: "npm-run-all lint:**",
16
16
  fix: "npm-run-all fix:**"
17
17
  )
@@ -11,8 +11,7 @@ module Nextgen
11
11
  :asset_pipelines,
12
12
  :databases,
13
13
  :default_features,
14
- :optional_features,
15
- keyword_init: true
14
+ :optional_features
16
15
  )
17
16
 
18
17
  class << RailsVersion
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextgen
4
- VERSION = "0.39.0"
4
+ VERSION = "0.39.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 4.0.3
227
+ rubygems_version: 4.0.7
228
228
  specification_version: 4
229
229
  summary: Generate your next Rails app interactively!
230
230
  test_files: []