generator-nitro 9.2.0 → 9.2.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/templates/.node-version +1 -1
- package/generators/app/templates/CUTAWAYpackage.json +11 -11
- package/generators/app/templates/cssnano.config.js +1 -1
- package/generators/app/templates/src/patterns/atoms/box/css/box.scss +6 -2
- package/generators/app/templates/src/patterns/molecules/example/css/example.scss +5 -1
- package/generators/app/templates/src/shared/base/grid/css/grid.scss +26 -1
- package/generators/app/templates/src/shared/base/grid/css/variables/grid.scss +1 -1
- package/generators/app/templates/src/shared/utils/fixed-aspect-ratio/css/fixed-aspect-ratio.scss +1 -1
- package/generators/app/templates/tests/lighthouse/lighthouse.config.js +5 -1
- package/generators/app/templates/tests/lighthouse/readme.md +2 -2
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
20.
|
|
1
|
+
20.12.2
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@gondel/core": "1.2.8",
|
|
82
82
|
"@gondel/plugin-hot": "1.2.8",
|
|
83
83
|
"bootstrap": "5.3.3",<% } %>
|
|
84
|
-
"core-js": "3.
|
|
84
|
+
"core-js": "3.37.0"<% if (options.exampleCode) { %>,
|
|
85
85
|
"flatpickr": "4.6.13",
|
|
86
86
|
"handlebars": "4.7.8",
|
|
87
87
|
"jquery": "3.7.1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"svg4everybody": "2.1.9"<% } %>
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {<% if (options.jsCompiler === 'js') { %>
|
|
95
|
-
"@babel/eslint-parser": "7.24.
|
|
95
|
+
"@babel/eslint-parser": "7.24.5",<% } %>
|
|
96
96
|
"@merkle-open/eslint-config": "3.0.0",
|
|
97
97
|
"@merkle-open/html-validate-config": "1.0.1",
|
|
98
98
|
"@merkle-open/prettier-config": "1.2.0",
|
|
@@ -102,18 +102,18 @@
|
|
|
102
102
|
"@nitro/exporter": "<%= version %>",
|
|
103
103
|
"@nitro/gulp": "<%= version %>",
|
|
104
104
|
"@nitro/webpack": "<%= version %>",
|
|
105
|
-
"@playwright/test": "1.
|
|
105
|
+
"@playwright/test": "1.44.0",<% if (options.jsCompiler === 'ts') { %>
|
|
106
106
|
"@types/bootstrap": "5.2.10",<% if (options.exampleCode ) { %>
|
|
107
107
|
"@types/jquery": "3.5.29",<% } %>
|
|
108
108
|
"@types/svg4everybody": "2.1.5",
|
|
109
|
-
"@types/webpack-env": "1.18.
|
|
109
|
+
"@types/webpack-env": "1.18.5",<% } %>
|
|
110
110
|
"backstopjs": "6.3.23",
|
|
111
111
|
"check-node-version": "4.2.1",
|
|
112
112
|
"commitizen": "4.3.0",
|
|
113
113
|
"config": "3.3.11",<% if (options.themes) { %>
|
|
114
|
-
|
|
114
|
+
"cookie-session": "2.1.0",<% } %>
|
|
115
115
|
"cross-env": "7.0.3",
|
|
116
|
-
"cypress": "13.
|
|
116
|
+
"cypress": "13.8.1",
|
|
117
117
|
"cz-conventional-changelog": "3.3.0",
|
|
118
118
|
"env-linter": "2.0.0",
|
|
119
119
|
"eslint": "8.57.0",
|
|
@@ -124,15 +124,15 @@
|
|
|
124
124
|
"html-validate": "7.18.1",
|
|
125
125
|
"husky": "9.0.11",
|
|
126
126
|
"license-checker": "25.0.1",
|
|
127
|
-
"lighthouse": "
|
|
127
|
+
"lighthouse": "12.0.0",
|
|
128
128
|
"lint-staged": "15.2.2",<% if (options.themes) { %>
|
|
129
|
-
"node-sass": "
|
|
130
|
-
"npm-check-updates": "16.14.
|
|
129
|
+
"node-sass": "9.0.0",<% } %>
|
|
130
|
+
"npm-check-updates": "16.14.20",
|
|
131
131
|
"npm-run-all": "4.1.5",
|
|
132
132
|
"prettier": "3.2.5",
|
|
133
133
|
"rimraf": "5.0.5",
|
|
134
|
-
"stylelint": "16.
|
|
135
|
-
"typescript": "5.4.
|
|
134
|
+
"stylelint": "16.5.0",<% if (options.jsCompiler === 'ts') { %>
|
|
135
|
+
"typescript": "5.4.5",<% } %>
|
|
136
136
|
"webpack-cli": "4.10.0",
|
|
137
137
|
"yo": "5.0.0"
|
|
138
138
|
},
|
|
@@ -21,20 +21,24 @@
|
|
|
21
21
|
border-left: 2rem solid transparent;
|
|
22
22
|
border-right: 2rem solid $color-gray-8;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
a {
|
|
26
|
+
padding: 0.5em 0;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
// inline mixin examples
|
|
27
31
|
@mixin box-mixin() {
|
|
28
32
|
display: block;
|
|
29
33
|
}
|
|
30
|
-
/* stylelint-disable-next-line
|
|
34
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
31
35
|
.a-box {
|
|
32
36
|
@include box-mixin();
|
|
33
37
|
}
|
|
34
38
|
@mixin box-mixin-alternative($display: block) {
|
|
35
39
|
display: $display;
|
|
36
40
|
}
|
|
37
|
-
/* stylelint-disable-next-line
|
|
41
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
38
42
|
.a-box {
|
|
39
43
|
@include box-mixin-alternative();
|
|
40
44
|
@include box-mixin-alternative(block);
|
|
@@ -9,11 +9,15 @@
|
|
|
9
9
|
}
|
|
10
10
|
.m-example__headline {
|
|
11
11
|
font-size: 1.6em;
|
|
12
|
+
margin-bottom: 0.6rem;
|
|
12
13
|
}
|
|
13
14
|
.m-example__link {
|
|
14
15
|
color: inherit;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
padding: 0.2rem 0;
|
|
15
18
|
}
|
|
16
19
|
.m-example__button {
|
|
20
|
+
font-size: 1rem;
|
|
17
21
|
padding: 0.5rem 1rem;
|
|
18
|
-
margin:
|
|
22
|
+
margin: 1rem 0.5rem 0.5rem 0;
|
|
19
23
|
}
|
|
@@ -1,2 +1,27 @@
|
|
|
1
1
|
@import 'variables/grid';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// please note:
|
|
4
|
+
// the following was copied from '~bootstrap/scss/bootstrap-grid'
|
|
5
|
+
// to be able to remove the unneeded classes
|
|
6
|
+
// https://getbootstrap.com/docs/5.3/layout/grid/
|
|
7
|
+
|
|
8
|
+
// configuration
|
|
9
|
+
@import '~bootstrap/scss/functions';
|
|
10
|
+
@import '~bootstrap/scss/variables';
|
|
11
|
+
@import '~bootstrap/scss/maps';
|
|
12
|
+
@import '~bootstrap/scss/vendor/rfs';
|
|
13
|
+
|
|
14
|
+
// mixins
|
|
15
|
+
@import '~bootstrap/scss/mixins/breakpoints';
|
|
16
|
+
@import '~bootstrap/scss/mixins/container';
|
|
17
|
+
@import '~bootstrap/scss/mixins/grid';
|
|
18
|
+
@import '~bootstrap/scss/mixins/utilities';
|
|
19
|
+
|
|
20
|
+
// layout
|
|
21
|
+
@import '~bootstrap/scss/containers';
|
|
22
|
+
@import '~bootstrap/scss/grid';
|
|
23
|
+
|
|
24
|
+
// utilities
|
|
25
|
+
@import '~bootstrap/scss/utilities';
|
|
26
|
+
$utilities: map-get-multiple($utilities, ('align-items', 'justify-content'));
|
|
27
|
+
@import '~bootstrap/scss/utilities/api';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../../../utils/breakpoints/css/breakpoints';
|
|
2
2
|
|
|
3
|
+
$spacer: 2rem;
|
|
3
4
|
$grid-columns: 12;
|
|
4
5
|
$grid-gutter-width: 20px;
|
|
5
6
|
$grid-breakpoints: (
|
|
@@ -10,7 +11,6 @@ $grid-breakpoints: (
|
|
|
10
11
|
xl: $size-xl-min,
|
|
11
12
|
xxl: $size-xxl-min,
|
|
12
13
|
);
|
|
13
|
-
|
|
14
14
|
$container-max-widths: (
|
|
15
15
|
sm: $size-sm-max,
|
|
16
16
|
md: $size-md-max,
|
|
@@ -13,15 +13,19 @@ module.exports = {
|
|
|
13
13
|
skipAudits: [
|
|
14
14
|
// performance
|
|
15
15
|
'redirects',
|
|
16
|
+
'redirects-http',
|
|
16
17
|
'server-response-time',
|
|
17
18
|
'uses-http2',
|
|
18
19
|
'uses-long-cache-ttl',
|
|
19
20
|
// best-practices
|
|
20
|
-
'
|
|
21
|
+
'csp-xss',
|
|
21
22
|
'is-on-https',
|
|
23
|
+
'redirects-http',
|
|
22
24
|
// seo
|
|
25
|
+
'document-title',
|
|
23
26
|
'http-status-code',
|
|
24
27
|
'is-crawlable',
|
|
28
|
+
'meta-description',
|
|
25
29
|
'robots-txt',
|
|
26
30
|
],
|
|
27
31
|
},
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Quality Testing. Outputs Scores for one page.
|
|
4
4
|
|
|
5
|
-
[More about lighthouse](https://
|
|
5
|
+
[More about lighthouse](https://developer.chrome.com/docs/lighthouse/overview/)
|
|
6
6
|
|
|
7
7
|
## Configuration
|
|
8
8
|
|
|
9
9
|
- The scope of the tests for the score evaluation can [be easily adjusted](./lighthouse.config.js).
|
|
10
|
-
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/
|
|
10
|
+
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/main/core/config/default-config.js) (tests on server infrastructure were disabled)
|
|
11
11
|
- The page to test is defined in the npm script `lighthouse-test:run`
|
|
12
12
|
- The report is generated inside '/public/reports/lighthouse'
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-nitro",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
4
4
|
"description": "Yeoman generator for the nitro frontend framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"config": "3.3.11",
|
|
41
41
|
"find-git-root": "1.0.4",
|
|
42
42
|
"git-config": "0.0.7",
|
|
43
|
-
"glob": "10.3.
|
|
43
|
+
"glob": "10.3.12",
|
|
44
44
|
"got": "11.8.5",
|
|
45
45
|
"lodash": "4.17.21",
|
|
46
46
|
"yeoman-generator": "5.10.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@merkle-open/eslint-config": "3.0.0",
|
|
51
|
-
"ejs": "3.1.
|
|
51
|
+
"ejs": "3.1.10",
|
|
52
52
|
"eslint": "8.57.0",
|
|
53
53
|
"eslint-plugin-import": "2.29.1",
|
|
54
54
|
"fs-extra": "11.2.0",
|