generator-nitro 7.2.1 → 7.2.3
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/.node-version +1 -1
- package/generators/app/templates/CUTAWAYpackage.json +14 -14
- package/generators/app/templates/project/docs/nitro.md +2 -4
- package/package.json +2 -2
- 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 }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.19.0
|
|
@@ -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.
|
|
87
|
+
"core-js": "3.27.1"<% if (options.exampleCode) { %>,
|
|
88
88
|
"flatpickr": "4.6.13",
|
|
89
89
|
"handlebars": "4.7.7",
|
|
90
|
-
"jquery": "3.6.
|
|
90
|
+
"jquery": "3.6.3",
|
|
91
91
|
"lazysizes": "5.3.2",
|
|
92
|
-
"lottie-web": "5.10.
|
|
92
|
+
"lottie-web": "5.10.1",
|
|
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"<% } %>
|
|
@@ -97,25 +97,25 @@
|
|
|
97
97
|
"devDependencies": {<% if (options.jsCompiler === 'js') { %>
|
|
98
98
|
"@babel/eslint-parser": "7.19.1",<% } %>
|
|
99
99
|
"@khanacademy/tota11y": "0.2.0",
|
|
100
|
+
"@merkle-open/eslint-config": "1.0.0",
|
|
100
101
|
"@merkle-open/html-validate-config": "1.0.0",
|
|
101
102
|
"@merkle-open/prettier-config": "1.0.0",
|
|
102
103
|
"@merkle-open/stylelint-config": "1.0.0",
|
|
103
104
|
"@merkle-open/ts-config": "1.0.0",
|
|
104
|
-
"@namics/eslint-config": "9.1.1",
|
|
105
105
|
"@nitro/app": "<%= version %>",
|
|
106
106
|
"@nitro/exporter": "<%= version %>",
|
|
107
107
|
"@nitro/gulp": "<%= version %>",
|
|
108
108
|
"@nitro/webpack": "<%= version %>",<% if (options.jsCompiler === 'ts') { %>
|
|
109
109
|
"@types/bootstrap": "5.2.6",<% if (options.exampleCode ) { %>
|
|
110
|
-
"@types/jquery": "3.5.
|
|
110
|
+
"@types/jquery": "3.5.16",<% } %>
|
|
111
111
|
"@types/svg4everybody": "2.1.2",
|
|
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.2.
|
|
115
|
+
"commitizen": "4.2.6",
|
|
116
116
|
"config": "3.3.8",
|
|
117
117
|
"cross-env": "7.0.3",
|
|
118
|
-
"cypress": "
|
|
118
|
+
"cypress": "12.2.0",
|
|
119
119
|
"cz-conventional-changelog": "3.3.0",
|
|
120
120
|
"env-linter": "1.0.0",
|
|
121
121
|
"eslint": "7.32.0",
|
|
@@ -123,18 +123,18 @@
|
|
|
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.12.0",
|
|
128
128
|
"license-checker": "25.0.1",
|
|
129
129
|
"lighthouse": "9.6.8",
|
|
130
130
|
"lint-staged": "13.1.0",<% if (options.themes) { %>
|
|
131
|
-
"node-sass": "
|
|
132
|
-
"npm-check-updates": "16.
|
|
131
|
+
"node-sass": "8.0.0",<% } %>
|
|
132
|
+
"npm-check-updates": "16.6.2",
|
|
133
133
|
"npm-run-all": "4.1.5",
|
|
134
|
-
"prettier": "2.8.
|
|
134
|
+
"prettier": "2.8.1",
|
|
135
135
|
"rimraf": "3.0.2",
|
|
136
|
-
"stylelint": "14.16.
|
|
137
|
-
"typescript": "4.9.
|
|
136
|
+
"stylelint": "14.16.1",<% if (options.jsCompiler === 'ts') { %>
|
|
137
|
+
"typescript": "4.9.4",<% } %>
|
|
138
138
|
"webpack-cli": "4.10.0",
|
|
139
139
|
"yo": "4.3.1"
|
|
140
140
|
},
|
|
@@ -20,10 +20,8 @@ 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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-nitro",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.3",
|
|
4
4
|
"description": "Yeoman generator for the nitro frontend framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "merkle-open/generator-nitro",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"yosay": "2.0.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
47
|
+
"@merkle-open/eslint-config": "1.0.0",
|
|
48
48
|
"ejs": "3.1.8",
|
|
49
49
|
"eslint": "7.32.0",
|
|
50
50
|
"eslint-plugin-import": "2.26.0",
|
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
|