generator-nitro 6.0.0-beta.2 → 6.0.0-rc.2
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
|
@@ -91,7 +91,7 @@ module.exports = class extends Generator {
|
|
|
91
91
|
this._skipQuestions = this.options.skipQuestions;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
initializing() {}
|
|
94
|
+
// initializing() {}
|
|
95
95
|
|
|
96
96
|
prompting() {
|
|
97
97
|
this.log(yosay(`Welcome to the awe-inspiring ${chalk.cyan('Nitro')} generator!`));
|
|
@@ -229,6 +229,24 @@ module.exports = class extends Generator {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
// configuring() {}
|
|
233
|
+
|
|
234
|
+
// default() {}
|
|
235
|
+
|
|
236
|
+
upgradeProject() {
|
|
237
|
+
if (this._update) {
|
|
238
|
+
const pkgProject = JSON.parse(fs.readFileSync(this.destinationPath('package.json'), 'utf8'));
|
|
239
|
+
|
|
240
|
+
// uninstall outdated githooks in older projects
|
|
241
|
+
const huskyVersion = pkgProject.devDependencies ? pkgProject.devDependencies.husky : undefined;
|
|
242
|
+
if (huskyVersion && huskyVersion.startsWith('4.')) {
|
|
243
|
+
// eslint-disable-next-line no-unused-vars
|
|
244
|
+
const result = childProcess.execSync('npm uninstall husky').toString();
|
|
245
|
+
this.log('Outdated husky githooks successfully removed.');
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
232
250
|
writing() {
|
|
233
251
|
this.log('Scaffolding your app');
|
|
234
252
|
|
|
@@ -473,21 +491,9 @@ module.exports = class extends Generator {
|
|
|
473
491
|
}, this);
|
|
474
492
|
}
|
|
475
493
|
|
|
476
|
-
|
|
477
|
-
if (this._update) {
|
|
478
|
-
const pkgProject = JSON.parse(fs.readFileSync(this.destinationPath('package.json'), 'utf8'));
|
|
479
|
-
|
|
480
|
-
// uninstall outdated githooks in older projects
|
|
481
|
-
const huskyVersion = pkgProject.devDependencies ? pkgProject.devDependencies.husky : undefined;
|
|
482
|
-
if (huskyVersion && huskyVersion.startsWith('4.')) {
|
|
483
|
-
// eslint-disable-next-line no-unused-vars
|
|
484
|
-
const result = childProcess.execSync('npm uninstall husky').toString();
|
|
485
|
-
this.log('Outdated husky githooks successfully removed.');
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
494
|
+
// conflicts() {}
|
|
489
495
|
|
|
490
|
-
install() {}
|
|
496
|
+
// install() {}
|
|
491
497
|
|
|
492
498
|
end() {
|
|
493
499
|
const filesToCopy = [
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"commitizen": "4.2.4",
|
|
115
115
|
"config": "3.3.6",
|
|
116
116
|
"cross-env": "7.0.3",
|
|
117
|
-
"cypress": "
|
|
117
|
+
"cypress": "9.0.0",
|
|
118
118
|
"cz-conventional-changelog": "3.3.0",
|
|
119
119
|
"env-linter": "0.5.1",
|
|
120
120
|
"eslint": "7.32.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"husky": "7.0.4",
|
|
126
126
|
"license-checker": "25.0.1",
|
|
127
127
|
"lighthouse": "8.6.0",
|
|
128
|
-
"lint-staged": "
|
|
128
|
+
"lint-staged": "12.0.2",<% if (options.themes) { %>
|
|
129
129
|
"node-sass": "6.0.1",<% } %>
|
|
130
130
|
"npm-check-updates": "12.0.0",
|
|
131
131
|
"npm-run-all": "4.1.5",
|
|
@@ -22,8 +22,8 @@ Nitro is simple, fast and flexible. Use this app for all your frontend work.
|
|
|
22
22
|
This application was created by the yeoman generator for nitro.
|
|
23
23
|
Before using, you need of course [node](https://nodejs.org/) installed.
|
|
24
24
|
Nitro is always tested with the current
|
|
25
|
-
["Active LTS"
|
|
26
|
-
and at the moment also with the LTS maintenance versions (release
|
|
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 versions (release 12.x and 14.x).
|
|
27
27
|
|
|
28
28
|
Install the project dependencies in the project root:
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-nitro",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-rc.2",
|
|
4
4
|
"description": "Yeoman generator for the nitro frontend framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "merkle-open/generator-nitro",
|
|
@@ -40,8 +40,6 @@
|
|
|
40
40
|
"got": "11.8.2",
|
|
41
41
|
"lodash": "4.17.21",
|
|
42
42
|
"yeoman-generator": "5.4.2",
|
|
43
|
-
"yeoman-environment": "3.8.0",
|
|
44
|
-
"yo": "4.3.0",
|
|
45
43
|
"yosay": "2.0.2"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
package/readme.md
CHANGED
|
@@ -17,8 +17,8 @@ Nitro is simple, fast and flexible. It works on macOS, Windows and Linux. Use th
|
|
|
17
17
|
|
|
18
18
|
Before using, you need of course [node](https://nodejs.org/) installed.
|
|
19
19
|
Nitro and the Nitro generator are always tested with the current
|
|
20
|
-
["Active LTS"
|
|
21
|
-
and at the moment also with the LTS maintenance versions (release
|
|
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 versions (release 12.x and 14.x).
|
|
22
22
|
|
|
23
23
|
### Create a new project
|
|
24
24
|
|