generator-nitro 9.0.3 → 9.2.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.11.0
1
+ 20.11.1
@@ -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",
@@ -80,8 +80,8 @@
80
80
  "dependencies": {<% if (options.exampleCode) { %>
81
81
  "@gondel/core": "1.2.8",
82
82
  "@gondel/plugin-hot": "1.2.8",
83
- "bootstrap": "5.3.2",<% } %>
84
- "core-js": "3.35.0"<% if (options.exampleCode) { %>,
83
+ "bootstrap": "5.3.3",<% } %>
84
+ "core-js": "3.36.1"<% if (options.exampleCode) { %>,
85
85
  "flatpickr": "4.6.13",
86
86
  "handlebars": "4.7.8",
87
87
  "jquery": "3.7.1",
@@ -92,7 +92,7 @@
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.24.1",<% } %>
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",
@@ -102,36 +102,37 @@
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.42.1",<% 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.3.3",
110
+ "backstopjs": "6.3.23",
111
111
  "check-node-version": "4.2.1",
112
112
  "commitizen": "4.3.0",
113
- "config": "3.3.10",
113
+ "config": "3.3.11",<% if (options.themes) { %>
114
+ "cookie-session": "2.1.0",<% } %>
114
115
  "cross-env": "7.0.3",
115
- "cypress": "13.6.2",
116
+ "cypress": "13.7.1",
116
117
  "cz-conventional-changelog": "3.3.0",
117
- "env-linter": "1.0.0",
118
- "eslint": "8.56.0",
118
+ "env-linter": "2.0.0",
119
+ "eslint": "8.57.0",
119
120
  "eslint-plugin-import": "2.29.1",
120
121
  "extend": "3.0.2",
121
122
  "generator-nitro": "<%= version %>",
122
123
  "gulp": "4.0.2",
123
124
  "html-validate": "7.18.1",
124
- "husky": "8.0.3",
125
+ "husky": "9.0.11",
125
126
  "license-checker": "25.0.1",
126
- "lighthouse": "11.4.0",
127
- "lint-staged": "15.1.0",<% if (options.themes) { %>
127
+ "lighthouse": "11.7.0",
128
+ "lint-staged": "15.2.2",<% if (options.themes) { %>
128
129
  "node-sass": "8.0.0",<% } %>
129
- "npm-check-updates": "16.14.12",
130
+ "npm-check-updates": "16.14.17",
130
131
  "npm-run-all": "4.1.5",
131
- "prettier": "3.2.2",
132
+ "prettier": "3.2.5",
132
133
  "rimraf": "5.0.5",
133
- "stylelint": "16.1.0",<% if (options.jsCompiler === 'ts') { %>
134
- "typescript": "5.3.3",<% } %>
134
+ "stylelint": "16.3.0",<% if (options.jsCompiler === 'ts') { %>
135
+ "typescript": "5.4.3",<% } %>
135
136
  "webpack-cli": "4.10.0",
136
137
  "yo": "5.0.0"
137
138
  },
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ preset: [
3
+ 'default',
4
+ // if the cssnano optimisation causes issues, features can be configured here
5
+ // see https://cssnano.github.io/cssnano/docs/what-are-optimisations/
6
+ // {
7
+ // cssDeclarationSorter: false,
8
+ // },
9
+ ]
10
+ };
@@ -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
  ```
@@ -27,7 +27,9 @@ module.exports = async (page, scenario) => {
27
27
  }
28
28
 
29
29
  if (postInteractionWait) {
30
- await page.waitForTimeout(postInteractionWait);
30
+ await new Promise((resolve) => {
31
+ setTimeout(resolve, postInteractionWait);
32
+ });
31
33
  }
32
34
 
33
35
  if (scrollToSelector) {
@@ -27,9 +27,12 @@
27
27
  "dependencies": {
28
28
  "@nitro/app": "<%= nitroAppVersion %>",
29
29
  "check-node-version": "4.2.1",
30
- "config": "3.3.10",
30
+ "config": "3.3.11",
31
+ "cookie-session": "2.1.0",
31
32
  "cross-env": "7.0.3",
32
33
  "extend": "3.0.2",
34
+ "hbs": "4.2.0",
35
+ "i18next": "23.10.1",
33
36
  "npm-run-all": "4.1.5"
34
37
  }
35
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-nitro",
3
- "version": "9.0.3",
3
+ "version": "9.2.0",
4
4
  "description": "Yeoman generator for the nitro frontend framework",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "modular"
37
37
  ],
38
38
  "dependencies": {
39
- "cli-color": "2.0.3",
40
- "config": "3.3.10",
39
+ "cli-color": "2.0.4",
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,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "@merkle-open/eslint-config": "3.0.0",
51
51
  "ejs": "3.1.9",
52
- "eslint": "8.56.0",
52
+ "eslint": "8.57.0",
53
53
  "eslint-plugin-import": "2.29.1",
54
54
  "fs-extra": "11.2.0",
55
55
  "jasmine": "5.1.0",