generator-nitro 9.0.2 → 9.1.0

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.
@@ -1,6 +1,3 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
1
  # if husky config is not in git root<% if (git.project) { %>
5
2
  cd <%= git.project %> || return<% } else { %>
6
3
  # cd ./... || return<% } %>
@@ -1 +1 @@
1
- 20.10.0
1
+ 20.11.0
@@ -20,7 +20,7 @@
20
20
  "nitro:update": "npm uninstall generator-nitro && npm install generator-nitro@latest --save-dev --save-exact && yo nitro",
21
21
  "update-dependencies": "npm-check-updates -u --deprecated",
22
22
  "\n# MISC ------- ": "",
23
- "postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky install <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %>npx playwright install && <% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts",
23
+ "postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %>npx playwright install && <% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts",
24
24
  "\n# LINT/TEST ------- ": "",
25
25
  "check-node-version": "check-node-version --print --package",
26
26
  "cypress-test": "npm run build && cross-env PORT=8888 NITRO_MODE=test npm-run-all --parallel --race prod:serve cypress-test:open",
@@ -81,57 +81,57 @@
81
81
  "@gondel/core": "1.2.8",
82
82
  "@gondel/plugin-hot": "1.2.8",
83
83
  "bootstrap": "5.3.2",<% } %>
84
- "core-js": "3.33.3"<% if (options.exampleCode) { %>,
84
+ "core-js": "3.35.1"<% if (options.exampleCode) { %>,
85
85
  "flatpickr": "4.6.13",
86
86
  "handlebars": "4.7.8",
87
87
  "jquery": "3.7.1",
88
88
  "lazysizes": "5.3.2",
89
89
  "lottie-web": "5.12.2",
90
90
  "prevent-window-opener-attacks": "0.3.1"<% } %><% if (options.jsCompiler === 'js') { %>,
91
- "regenerator-runtime": "0.14.0"<% } %><% if (options.exampleCode) { %>,
91
+ "regenerator-runtime": "0.14.1"<% } %><% if (options.exampleCode) { %>,
92
92
  "svg4everybody": "2.1.9"<% } %>
93
93
  },
94
94
  "devDependencies": {<% if (options.jsCompiler === 'js') { %>
95
- "@babel/eslint-parser": "7.23.3",<% } %>
95
+ "@babel/eslint-parser": "7.23.10",<% } %>
96
96
  "@merkle-open/eslint-config": "3.0.0",
97
97
  "@merkle-open/html-validate-config": "1.0.1",
98
98
  "@merkle-open/prettier-config": "1.2.0",
99
- "@merkle-open/stylelint-config": "3.2.0",
99
+ "@merkle-open/stylelint-config": "4.0.0",
100
100
  "@merkle-open/ts-config": "1.1.0",
101
101
  "@nitro/app": "<%= version %>",
102
102
  "@nitro/exporter": "<%= version %>",
103
103
  "@nitro/gulp": "<%= version %>",
104
104
  "@nitro/webpack": "<%= version %>",
105
- "@playwright/test": "1.40.0",<% if (options.jsCompiler === 'ts') { %>
105
+ "@playwright/test": "1.41.2",<% if (options.jsCompiler === 'ts') { %>
106
106
  "@types/bootstrap": "5.2.10",<% if (options.exampleCode ) { %>
107
107
  "@types/jquery": "3.5.29",<% } %>
108
108
  "@types/svg4everybody": "2.1.5",
109
109
  "@types/webpack-env": "1.18.4",<% } %>
110
- "backstopjs": "6.2.2",
110
+ "backstopjs": "6.3.3",
111
111
  "check-node-version": "4.2.1",
112
112
  "commitizen": "4.3.0",
113
- "config": "3.3.9",
113
+ "config": "3.3.11",
114
114
  "cross-env": "7.0.3",
115
- "cypress": "13.6.0",
115
+ "cypress": "13.6.4",
116
116
  "cz-conventional-changelog": "3.3.0",
117
- "env-linter": "1.0.0",
118
- "eslint": "8.54.0",
119
- "eslint-plugin-import": "2.29.0",
117
+ "env-linter": "2.0.0",
118
+ "eslint": "8.56.0",
119
+ "eslint-plugin-import": "2.29.1",
120
120
  "extend": "3.0.2",
121
121
  "generator-nitro": "<%= version %>",
122
122
  "gulp": "4.0.2",
123
123
  "html-validate": "7.18.1",
124
- "husky": "8.0.3",
124
+ "husky": "9.0.10",
125
125
  "license-checker": "25.0.1",
126
- "lighthouse": "11.3.0",
127
- "lint-staged": "15.1.0",<% if (options.themes) { %>
126
+ "lighthouse": "11.5.0",
127
+ "lint-staged": "15.2.2",<% if (options.themes) { %>
128
128
  "node-sass": "8.0.0",<% } %>
129
- "npm-check-updates": "16.14.11",
129
+ "npm-check-updates": "16.14.15",
130
130
  "npm-run-all": "4.1.5",
131
- "prettier": "3.1.0",
131
+ "prettier": "3.2.5",
132
132
  "rimraf": "5.0.5",
133
- "stylelint": "15.11.0",<% if (options.jsCompiler === 'ts') { %>
134
- "typescript": "5.3.2",<% } %>
133
+ "stylelint": "16.2.1",<% if (options.jsCompiler === 'ts') { %>
134
+ "typescript": "5.3.3",<% } %>
135
135
  "webpack-cli": "4.10.0",
136
136
  "yo": "5.0.0"
137
137
  },
@@ -30,12 +30,6 @@ Install the project dependencies in the project root:
30
30
  npm ci
31
31
  ```
32
32
 
33
- On Mac you need to make sure that githooks are executable, e.g.
34
-
35
- ```
36
- chmod +x .husky/pre-commit
37
- ```
38
-
39
33
  ## Starting the app
40
34
 
41
35
  Use
@@ -17,7 +17,7 @@ function getUser(req, res, next) {
17
17
  }
18
18
 
19
19
  module.exports = (app) => {
20
- app.route('/').get(getUser);
20
+ app.route('/').all(getUser);
21
21
  };
22
22
  ```
23
23
 
@@ -13,12 +13,6 @@ Run:
13
13
  npm ci
14
14
  ```
15
15
 
16
- On Mac you need to make sure that githooks are executable:
17
-
18
- ```
19
- chmod +x .husky/pre-commit
20
- ```
21
-
22
16
  and start in development mode
23
17
 
24
18
  ```
@@ -5,24 +5,6 @@ lintConfig.rules['plugin/stylelint-bem-namics'] = {
5
5
  helperPrefixes: ['state'],
6
6
  };
7
7
 
8
- // remove deprecated checks - handled by prettier
9
- lintConfig.rules['at-rule-name-case'] = null;
10
- lintConfig.rules['color-hex-case'] = null;
11
- lintConfig.rules['declaration-block-semicolon-newline-after'] = null;
12
- lintConfig.rules['declaration-block-trailing-semicolon'] = null;
13
- lintConfig.rules['declaration-colon-space-after'] = null;
14
- lintConfig.rules['max-empty-lines'] = null;
15
- lintConfig.rules['media-feature-name-case'] = null;
16
- lintConfig.rules['no-missing-end-of-source-newline'] = null;
17
- lintConfig.rules['number-leading-zero'] = null;
18
- lintConfig.rules['property-case'] = null;
19
- lintConfig.rules['selector-list-comma-newline-after'] = null;
20
- lintConfig.rules['selector-pseudo-class-case'] = null;
21
- lintConfig.rules['selector-pseudo-element-case'] = null;
22
- lintConfig.rules['string-quotes'] = null;
23
- lintConfig.rules['unit-case'] = null;
24
- lintConfig.rules['indentation'] = null;
25
-
26
8
  // node-sass can't handle modern color function notation
27
9
  lintConfig.rules['color-function-notation'] = null;
28
10
 
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@nitro/app": "<%= nitroAppVersion %>",
29
29
  "check-node-version": "4.2.1",
30
- "config": "3.3.9",
30
+ "config": "3.3.11",
31
31
  "cross-env": "7.0.3",
32
32
  "extend": "3.0.2",
33
33
  "npm-run-all": "4.1.5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-nitro",
3
- "version": "9.0.2",
3
+ "version": "9.1.0",
4
4
  "description": "Yeoman generator for the nitro frontend framework",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "cli-color": "2.0.3",
40
- "config": "3.3.9",
40
+ "config": "3.3.11",
41
41
  "find-git-root": "1.0.4",
42
42
  "git-config": "0.0.7",
43
43
  "glob": "10.3.10",
@@ -49,9 +49,9 @@
49
49
  "devDependencies": {
50
50
  "@merkle-open/eslint-config": "3.0.0",
51
51
  "ejs": "3.1.9",
52
- "eslint": "8.54.0",
53
- "eslint-plugin-import": "2.29.0",
54
- "fs-extra": "11.1.1",
52
+ "eslint": "8.56.0",
53
+ "eslint-plugin-import": "2.29.1",
54
+ "fs-extra": "11.2.0",
55
55
  "jasmine": "5.1.0",
56
56
  "yeoman-assert": "3.1.1",
57
57
  "yeoman-test": "6.3.0"