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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b870585e56d0c93d1f39947af10edf2eff44856eca5ae7986ecf53607619a142
|
|
4
|
+
data.tar.gz: 635f26513f607c6281100a7c1f29ddca876a133218be6c3ab1c1df4749f414be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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": "
|
|
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": "
|
|
14
|
+
"fix:css": "yarn run lint:css --fix",
|
|
15
15
|
lint: "npm-run-all lint:**",
|
|
16
16
|
fix: "npm-run-all fix:**"
|
|
17
17
|
)
|
data/lib/nextgen/version.rb
CHANGED
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.
|
|
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.
|
|
227
|
+
rubygems_version: 4.0.7
|
|
228
228
|
specification_version: 4
|
|
229
229
|
summary: Generate your next Rails app interactively!
|
|
230
230
|
test_files: []
|