generator-nitro 7.1.0 → 7.1.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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable max-len, complexity, no-else-return, require-jsdoc */
|
|
4
4
|
|
|
5
5
|
const Generator = require('yeoman-generator');
|
|
6
|
-
const
|
|
6
|
+
const clc = require('cli-color');
|
|
7
7
|
const yosay = require('yosay');
|
|
8
8
|
const got = require('got');
|
|
9
9
|
const path = require('path');
|
|
@@ -119,12 +119,12 @@ module.exports = class extends Generator {
|
|
|
119
119
|
this._git.root = gitPath;
|
|
120
120
|
this._git.project = projectPath;
|
|
121
121
|
} catch (e) {
|
|
122
|
-
this.log(
|
|
122
|
+
this.log(clc.red(e.message));
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
prompting() {
|
|
127
|
-
this.log(yosay(`Welcome to the awe-inspiring ${
|
|
127
|
+
this.log(yosay(`Welcome to the awe-inspiring ${clc.cyan('Nitro')} generator!`));
|
|
128
128
|
|
|
129
129
|
// check whether there is already a nitro application in place and we only have to update the application
|
|
130
130
|
const json = this.fs.readJSON(this.destinationPath('.yo-rc.json'), { new: true });
|
|
@@ -135,7 +135,7 @@ module.exports = class extends Generator {
|
|
|
135
135
|
{
|
|
136
136
|
name: 'update',
|
|
137
137
|
type: 'confirm',
|
|
138
|
-
message: `There is already a ${
|
|
138
|
+
message: `There is already a ${clc.cyan(
|
|
139
139
|
'Nitro'
|
|
140
140
|
)} application in place! Should I serve you an update?`,
|
|
141
141
|
default: true,
|
|
@@ -560,13 +560,13 @@ module.exports = class extends Generator {
|
|
|
560
560
|
}
|
|
561
561
|
});
|
|
562
562
|
} catch (e) {
|
|
563
|
-
this.log(
|
|
563
|
+
this.log(clc.red(e.message));
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
if (this._update) {
|
|
567
567
|
this.log(yosay(`All done – Check local changes and then\nrun \`npm install\` to update your project.`));
|
|
568
568
|
} else {
|
|
569
|
-
this.log(yosay(`All done –\nrun \`npm start\` to start ${
|
|
569
|
+
this.log(yosay(`All done –\nrun \`npm start\` to start ${clc.cyan('Nitro')} in development mode.`));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
};
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@gondel/core": "1.2.7",
|
|
85
85
|
"@gondel/plugin-hot": "1.2.7",
|
|
86
86
|
"bootstrap": "5.2.2",<% } %>
|
|
87
|
-
"core-js": "3.
|
|
87
|
+
"core-js": "3.26.0"<% if (options.exampleCode) { %>,
|
|
88
88
|
"flatpickr": "4.6.13",
|
|
89
89
|
"handlebars": "4.7.7",
|
|
90
90
|
"jquery": "3.6.1",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"commitizen": "4.2.5",
|
|
116
116
|
"config": "3.3.8",
|
|
117
117
|
"cross-env": "7.0.3",
|
|
118
|
-
"cypress": "10.
|
|
118
|
+
"cypress": "10.11.0",
|
|
119
119
|
"cz-conventional-changelog": "3.3.0",
|
|
120
120
|
"env-linter": "1.0.0",
|
|
121
121
|
"eslint": "7.32.0",
|
|
@@ -124,10 +124,11 @@
|
|
|
124
124
|
"generator-nitro": "<%= version %>",
|
|
125
125
|
"gulp": "4.0.2",
|
|
126
126
|
"husky": "8.0.1",
|
|
127
|
+
"html-validate": "7.7.1",
|
|
127
128
|
"license-checker": "25.0.1",
|
|
128
129
|
"lighthouse": "9.6.7",
|
|
129
130
|
"lint-staged": "13.0.3",<% if (options.themes) { %>
|
|
130
|
-
"node-sass": "
|
|
131
|
+
"node-sass": "7.0.3",<% } %>
|
|
131
132
|
"npm-check-updates": "16.3.15",
|
|
132
133
|
"npm-run-all": "4.1.5",
|
|
133
134
|
"prettier": "2.7.1",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/* eslint-disable no-inline-comments, max-len, complexity, global-require, require-jsdoc */
|
|
8
8
|
|
|
9
9
|
const Generator = require('yeoman-generator');
|
|
10
|
-
const
|
|
10
|
+
const clc = require('cli-color');
|
|
11
11
|
const yosay = require('yosay');
|
|
12
12
|
const path = require('path');
|
|
13
13
|
const fs = require('fs');
|
|
@@ -149,14 +149,14 @@ module.exports = class extends Generator {
|
|
|
149
149
|
writing() {
|
|
150
150
|
const hasModifier = !_.isEmpty(this.options.modifier);
|
|
151
151
|
const hasDecorator = !_.isEmpty(this.options.decorator);
|
|
152
|
-
let msg = `Creating ${
|
|
152
|
+
let msg = `Creating ${clc.cyan(this.name)} ${this.options.type}`;
|
|
153
153
|
|
|
154
154
|
if (hasModifier || hasDecorator) {
|
|
155
155
|
msg += ' with ';
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
if (hasModifier) {
|
|
159
|
-
msg += `CSS modifier ${
|
|
159
|
+
msg += `CSS modifier ${clc.cyan(this.options.modifier)}`;
|
|
160
160
|
|
|
161
161
|
if (hasDecorator) {
|
|
162
162
|
msg += ' and ';
|
|
@@ -164,7 +164,7 @@ module.exports = class extends Generator {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
if (hasDecorator) {
|
|
167
|
-
msg += `JS decorator ${
|
|
167
|
+
msg += `JS decorator ${clc.cyan(this.options.decorator)}`;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
this.log(msg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-nitro",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Yeoman generator for the nitro frontend framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "merkle-open/generator-nitro",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"modular"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"
|
|
36
|
+
"cli-color": "2.0.3",
|
|
37
37
|
"config": "3.3.8",
|
|
38
38
|
"find-git-root": "1.0.4",
|
|
39
39
|
"git-config": "0.0.7",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint": "7.32.0",
|
|
50
50
|
"eslint-plugin-import": "2.26.0",
|
|
51
51
|
"fs-extra": "10.1.0",
|
|
52
|
-
"jasmine": "4.
|
|
52
|
+
"jasmine": "4.5.0",
|
|
53
53
|
"yeoman-assert": "3.1.1",
|
|
54
54
|
"yeoman-test": "6.3.0"
|
|
55
55
|
}
|