generator-nitro 7.2.2 → 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
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 }],
|
|
@@ -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
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
|