generator-nitro 7.2.2 → 7.2.4
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.
- package/generators/app/index.js +4 -2
- package/generators/app/templates/.eslintrc.js +4 -4
- package/generators/app/templates/CUTAWAYpackage.json +12 -12
- package/generators/app/templates/project/docs/nitro.md +3 -5
- package/generators/app/templates/readme.md +1 -1
- package/generators/server/templates/package.json +2 -3
- package/package.json +4 -4
- package/readme.md +4 -8
package/generators/app/index.js
CHANGED
|
@@ -229,6 +229,8 @@ module.exports = class extends Generator {
|
|
|
229
229
|
when: () => !this._skipQuestions && typeof this._passedInOptions.exporter !== 'boolean',
|
|
230
230
|
},
|
|
231
231
|
]).then((answers) => {
|
|
232
|
+
this.options.skipInstall = true;
|
|
233
|
+
|
|
232
234
|
this.options.name = answers.name || this.options.name;
|
|
233
235
|
this.options.templateEngine = answers.templateEngine || this.options.templateEngine;
|
|
234
236
|
this.options.jsCompiler = answers.jsCompiler || this.options.jsCompiler;
|
|
@@ -564,9 +566,9 @@ module.exports = class extends Generator {
|
|
|
564
566
|
}
|
|
565
567
|
|
|
566
568
|
if (this._update) {
|
|
567
|
-
this.log(yosay(`All done –
|
|
569
|
+
this.log(yosay(`All done – check local changes, \nuse desired node version and then\nrun \`npm install\` to update your project.`));
|
|
568
570
|
} else {
|
|
569
|
-
this.log(yosay(`All done
|
|
571
|
+
this.log(yosay(`All done – use desired node version, \nrun \`npm install\` \nand run \`npm start\` to start ${clc.cyan('Nitro')} in development mode.`));
|
|
570
572
|
}
|
|
571
573
|
}
|
|
572
574
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
extends: [
|
|
5
|
-
'@
|
|
6
|
-
'@
|
|
5
|
+
'@merkle-open/eslint-config/configurations/typescript-browser.js',
|
|
6
|
+
'@merkle-open/eslint-config/configurations/typescript-browser-disable-styles.js',
|
|
7
7
|
].map(require.resolve),
|
|
8
8
|
rules: {
|
|
9
9
|
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'],
|
|
@@ -25,8 +25,8 @@ module.exports = {
|
|
|
25
25
|
},
|
|
26
26
|
};<% } else { %>module.exports = {
|
|
27
27
|
extends: [
|
|
28
|
-
'@
|
|
29
|
-
'@
|
|
28
|
+
'@merkle-open/eslint-config/configurations/es8-browser.js',
|
|
29
|
+
'@merkle-open/eslint-config/configurations/es8-browser-disable-styles.js',
|
|
30
30
|
].map(require.resolve),
|
|
31
31
|
rules: {
|
|
32
32
|
'new-cap': [2, { capIsNew: false }],
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"nitro:pattern": "yo nitro:pattern",
|
|
19
19
|
"nitro:server": "npm run build && rimraf dist/ && yo nitro:server --folder=dist",
|
|
20
20
|
"nitro:update": "npm uninstall generator-nitro && npm install generator-nitro@latest --save-dev --save-exact && yo nitro",
|
|
21
|
-
"update-dependencies": "npm-check-updates -u",
|
|
21
|
+
"update-dependencies": "npm-check-updates -u --deprecated",
|
|
22
22
|
"\n# MISC ------- ": "",
|
|
23
23
|
"postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky install <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %><% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts",
|
|
24
24
|
"\n# LINT/TEST ------- ": "",
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"@gondel/core": "1.2.7",
|
|
85
85
|
"@gondel/plugin-hot": "1.2.7",
|
|
86
86
|
"bootstrap": "5.2.3",<% } %>
|
|
87
|
-
"core-js": "3.27.
|
|
87
|
+
"core-js": "3.27.2"<% if (options.exampleCode) { %>,
|
|
88
88
|
"flatpickr": "4.6.13",
|
|
89
89
|
"handlebars": "4.7.7",
|
|
90
90
|
"jquery": "3.6.3",
|
|
91
91
|
"lazysizes": "5.3.2",
|
|
92
|
-
"lottie-web": "5.10.
|
|
92
|
+
"lottie-web": "5.10.2",
|
|
93
93
|
"prevent-window-opener-attacks": "0.3.0"<% } %><% if (options.jsCompiler === 'js') { %>,
|
|
94
94
|
"regenerator-runtime": "0.13.11"<% } %><% if (options.exampleCode) { %>,
|
|
95
95
|
"svg4everybody": "2.1.9"<% } %>
|
|
@@ -112,27 +112,27 @@
|
|
|
112
112
|
"@types/webpack-env": "1.18.0",<% } %>
|
|
113
113
|
"backstopjs": "6.1.4",
|
|
114
114
|
"check-node-version": "4.2.1",
|
|
115
|
-
"commitizen": "4.
|
|
116
|
-
"config": "3.3.
|
|
115
|
+
"commitizen": "4.3.0",
|
|
116
|
+
"config": "3.3.9",
|
|
117
117
|
"cross-env": "7.0.3",
|
|
118
|
-
"cypress": "12.
|
|
118
|
+
"cypress": "12.4.0",
|
|
119
119
|
"cz-conventional-changelog": "3.3.0",
|
|
120
120
|
"env-linter": "1.0.0",
|
|
121
121
|
"eslint": "7.32.0",
|
|
122
|
-
"eslint-plugin-import": "2.
|
|
122
|
+
"eslint-plugin-import": "2.27.5",
|
|
123
123
|
"extend": "3.0.2",
|
|
124
124
|
"generator-nitro": "<%= version %>",
|
|
125
125
|
"gulp": "4.0.2",
|
|
126
|
-
"husky": "8.0.
|
|
127
|
-
"html-validate": "7.
|
|
126
|
+
"husky": "8.0.3",
|
|
127
|
+
"html-validate": "7.13.1",
|
|
128
128
|
"license-checker": "25.0.1",
|
|
129
129
|
"lighthouse": "9.6.8",
|
|
130
130
|
"lint-staged": "13.1.0",<% if (options.themes) { %>
|
|
131
131
|
"node-sass": "8.0.0",<% } %>
|
|
132
|
-
"npm-check-updates": "16.6.
|
|
132
|
+
"npm-check-updates": "16.6.3",
|
|
133
133
|
"npm-run-all": "4.1.5",
|
|
134
|
-
"prettier": "2.8.
|
|
135
|
-
"rimraf": "
|
|
134
|
+
"prettier": "2.8.3",
|
|
135
|
+
"rimraf": "4.1.2",
|
|
136
136
|
"stylelint": "14.16.1",<% if (options.jsCompiler === 'ts') { %>
|
|
137
137
|
"typescript": "4.9.4",<% } %>
|
|
138
138
|
"webpack-cli": "4.10.0",
|
|
@@ -20,15 +20,13 @@ Nitro is simple, fast and flexible. Use this app for all your frontend work.
|
|
|
20
20
|
## Preparation
|
|
21
21
|
|
|
22
22
|
This application was created by the yeoman generator for nitro.
|
|
23
|
-
Before using, you need of course [node](https://nodejs.org/) installed.
|
|
24
|
-
Nitro is
|
|
25
|
-
["Active LTS" version of node.js](https://github.com/nodejs/Release#release-schedule) (release 16.x)
|
|
26
|
-
and at the moment also with the LTS maintenance version (release 14.x).
|
|
23
|
+
Before using, you need of course [node](https://nodejs.org/) installed.
|
|
24
|
+
Nitro is currently tested with the LTS maintenance versions (release 16.x and 14.x).
|
|
27
25
|
|
|
28
26
|
Install the project dependencies in the project root:
|
|
29
27
|
|
|
30
28
|
```
|
|
31
|
-
npm
|
|
29
|
+
npm ci
|
|
32
30
|
```
|
|
33
31
|
|
|
34
32
|
On Mac you need to make sure that githooks are executable, e.g.
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@nitro/app": "<%= nitroAppVersion %>",
|
|
29
29
|
"check-node-version": "4.2.1",
|
|
30
|
-
"config": "3.3.
|
|
30
|
+
"config": "3.3.9",
|
|
31
31
|
"cross-env": "7.0.3",
|
|
32
32
|
"extend": "3.0.2",
|
|
33
|
-
"npm-run-all": "4.1.5"
|
|
34
|
-
"rimraf": "3.0.2"
|
|
33
|
+
"npm-run-all": "4.1.5"
|
|
35
34
|
}
|
|
36
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-nitro",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.4",
|
|
4
4
|
"description": "Yeoman generator for the nitro frontend framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "merkle-open/generator-nitro",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"cli-color": "2.0.3",
|
|
37
|
-
"config": "3.3.
|
|
37
|
+
"config": "3.3.9",
|
|
38
38
|
"find-git-root": "1.0.4",
|
|
39
39
|
"git-config": "0.0.7",
|
|
40
|
-
"glob": "8.0
|
|
40
|
+
"glob": "8.1.0",
|
|
41
41
|
"got": "11.8.5",
|
|
42
42
|
"lodash": "4.17.21",
|
|
43
43
|
"yeoman-generator": "5.7.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@merkle-open/eslint-config": "1.0.0",
|
|
48
48
|
"ejs": "3.1.8",
|
|
49
49
|
"eslint": "7.32.0",
|
|
50
|
-
"eslint-plugin-import": "2.
|
|
50
|
+
"eslint-plugin-import": "2.27.5",
|
|
51
51
|
"fs-extra": "11.1.0",
|
|
52
52
|
"jasmine": "4.5.0",
|
|
53
53
|
"yeoman-assert": "3.1.1",
|
package/readme.md
CHANGED
|
@@ -16,9 +16,7 @@ Nitro is simple, fast and flexible. It works on macOS, Windows and Linux. Use th
|
|
|
16
16
|
## Usage
|
|
17
17
|
|
|
18
18
|
Before using, you need of course [node](https://nodejs.org/) installed.
|
|
19
|
-
Nitro and the Nitro generator are
|
|
20
|
-
["Active LTS" version of node.js](https://github.com/nodejs/Release#release-schedule) (release 16.x)
|
|
21
|
-
and at the moment also with the LTS maintenance version (release 14.x).
|
|
19
|
+
Nitro and the Nitro generator are currently tested with the LTS maintenance versions (release 16.x and 14.x).
|
|
22
20
|
|
|
23
21
|
### Create a new project
|
|
24
22
|
|
|
@@ -27,16 +25,14 @@ Make sure you are in an existing git repo, or create one with `git init`.
|
|
|
27
25
|
This creates a new project in the current directory
|
|
28
26
|
using [npx](https://www.npmjs.com/package/npx) (npm >= 5.2):
|
|
29
27
|
|
|
30
|
-
First, uninstall a previously installed global package "generator-nitro"
|
|
31
|
-
|
|
32
28
|
```
|
|
33
|
-
|
|
29
|
+
npx -p yo -p generator-nitro@latest -- yo nitro
|
|
34
30
|
```
|
|
35
31
|
|
|
36
|
-
|
|
32
|
+
then install with desired node version
|
|
37
33
|
|
|
38
34
|
```
|
|
39
|
-
|
|
35
|
+
npm install
|
|
40
36
|
```
|
|
41
37
|
|
|
42
38
|
### Update a project
|