generator-nitro 6.0.10 → 6.1.1

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.
Files changed (19) hide show
  1. package/generators/app/templates/.htmlvalidate.js +19 -0
  2. package/generators/app/templates/CUTAWAYpackage.json +13 -14
  3. package/generators/app/templates/src/shared/assets/img/icon/favicon.svg +12 -0
  4. package/generators/app/templates/src/shared/assets/img/icon/{android-chrome-192x192.png → icon-192x192.png} +0 -0
  5. package/generators/app/templates/src/shared/assets/img/icon/{android-chrome-512x512.png → icon-512x512.png} +0 -0
  6. package/generators/app/templates/src/shared/assets/img/icon/site.webmanifest +2 -2
  7. package/generators/app/templates/src/views/_partials/head.hbs +4 -8
  8. package/generators/app/templates/src/views/_partials/head.twig +4 -8
  9. package/package.json +6 -6
  10. package/generators/app/templates/.htmllintrc +0 -27
  11. package/generators/app/templates/src/shared/assets/img/icon/browserconfig.xml +0 -9
  12. package/generators/app/templates/src/shared/assets/img/icon/favicon-16x16.png +0 -0
  13. package/generators/app/templates/src/shared/assets/img/icon/favicon-32x32.png +0 -0
  14. package/generators/app/templates/src/shared/assets/img/icon/mstile-144x144.png +0 -0
  15. package/generators/app/templates/src/shared/assets/img/icon/mstile-150x150.png +0 -0
  16. package/generators/app/templates/src/shared/assets/img/icon/mstile-310x150.png +0 -0
  17. package/generators/app/templates/src/shared/assets/img/icon/mstile-310x310.png +0 -0
  18. package/generators/app/templates/src/shared/assets/img/icon/mstile-70x70.png +0 -0
  19. package/generators/app/templates/src/shared/assets/img/icon/safari-pinned-tab.svg +0 -35
@@ -0,0 +1,19 @@
1
+ const config = {
2
+ root: true,
3
+ extends: ['html-validate:recommended'],
4
+ rules: {
5
+ 'element-required-attributes': 'warn',
6
+ 'element-permitted-order': 'warn',
7
+ 'no-inline-style': 'off',
8
+ 'no-implicit-close': 'warn',
9
+ 'no-raw-characters': ['warn', { relaxed: true }],
10
+ 'prefer-native-element': 'warn',
11
+ 'svg-focusable': 'off',
12
+ 'tel-non-breaking': 'off',
13
+
14
+ // disable style rules
15
+ 'no-trailing-whitespace': 'off',
16
+ },
17
+ };
18
+
19
+ module.exports = config;
@@ -83,20 +83,20 @@
83
83
  "dependencies": {<% if (options.exampleCode) { %>
84
84
  "@gondel/core": "1.2.7",
85
85
  "@gondel/plugin-hot": "1.2.7",
86
- "@khanacademy/tota11y": "0.2.0",
87
86
  "bootstrap": "5.1.3",<% } %>
88
- "core-js": "3.21.1"<% if (options.exampleCode) { %>,
89
- "flatpickr": "4.6.11",
87
+ "core-js": "3.22.2"<% if (options.exampleCode) { %>,
88
+ "flatpickr": "4.6.13",
90
89
  "handlebars": "4.7.7",
91
90
  "jquery": "3.6.0",
92
91
  "lazysizes": "5.3.2",
93
- "lottie-web": "5.9.1",
92
+ "lottie-web": "5.9.3",
94
93
  "prevent-window-opener-attacks": "0.3.0"<% } %><% if (options.jsCompiler === 'js') { %>,
95
94
  "regenerator-runtime": "0.13.9"<% } %><% if (options.exampleCode) { %>,
96
95
  "svg4everybody": "2.1.9"<% } %>
97
96
  },
98
97
  "devDependencies": {<% if (options.jsCompiler === 'js') { %>
99
- "@babel/eslint-parser": "7.16.5",<% } %>
98
+ "@babel/eslint-parser": "7.17.0",<% } %>
99
+ "@khanacademy/tota11y": "0.2.0",
100
100
  "@namics/eslint-config": "9.1.1",
101
101
  "@namics/prettier-config": "2.0.1",
102
102
  "@namics/stylelint-config": "1.1.2",
@@ -105,32 +105,31 @@
105
105
  "@nitro/exporter": "<%= version %>",
106
106
  "@nitro/gulp": "<%= version %>",
107
107
  "@nitro/webpack": "<%= version %>",<% if (options.jsCompiler === 'ts') { %>
108
- "@types/bootstrap": "5.1.9",<% if (options.exampleCode ) { %>
108
+ "@types/bootstrap": "5.1.10",<% if (options.exampleCode ) { %>
109
109
  "@types/jquery": "3.5.14",<% } %>
110
110
  "@types/svg4everybody": "2.1.2",
111
- "@types/webpack-env": "1.16.3",<% } %>
111
+ "@types/webpack-env": "1.16.4",<% } %>
112
112
  "backstopjs": "6.0.4",
113
113
  "check-node-version": "4.2.1",
114
114
  "commitizen": "4.2.4",
115
115
  "config": "3.3.7",
116
116
  "cross-env": "7.0.3",
117
- "cypress": "9.5.3",
117
+ "cypress": "9.6.0",
118
118
  "cz-conventional-changelog": "3.3.0",
119
119
  "env-linter": "0.5.1",
120
120
  "eslint": "7.32.0",
121
- "eslint-plugin-import": "2.25.4",
121
+ "eslint-plugin-import": "2.26.0",
122
122
  "extend": "3.0.2",
123
123
  "generator-nitro": "<%= version %>",
124
124
  "gulp": "4.0.2",
125
125
  "husky": "7.0.4",
126
126
  "license-checker": "25.0.1",
127
- "lighthouse": "9.4.0",
128
- "lint-staged": "12.3.7",<% if (options.themes) { %>
127
+ "lighthouse": "9.5.0",
128
+ "lint-staged": "12.4.1",<% if (options.themes) { %>
129
129
  "node-sass": "6.0.1",<% } %>
130
- "npm-check-updates": "12.5.4",
130
+ "npm-check-updates": "12.5.9",
131
131
  "npm-run-all": "4.1.5",
132
- "opener": "1.5.2",
133
- "prettier": "2.6.1",
132
+ "prettier": "2.6.2",
134
133
  "rimraf": "3.0.2",
135
134
  "stylelint": "13.13.1",<% if (options.jsCompiler === 'ts') { %>
136
135
  "typescript": "4.6.3",<% } %>
@@ -0,0 +1,12 @@
1
+ <svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <style>path { fill: #282c34 } @media (prefers-color-scheme: dark) { path { fill: #fafafa } }</style>
3
+ <path d="M139 70.0688C139 76.7543 133.645 82.1108 127 82.1108C120.548 82.1108 115 76.7543 115 70.0688C115 63.3832 120.548 58 127 58C133.651 58 139 63.3832 139 70.0688Z"/>
4
+ <path d="M139 108.993C139 115.679 133.645 121.062 127 121.062C120.548 121.062 115 115.679 115 108.993C115 102.321 120.548 96.9513 127 96.9513C133.651 96.9513 139 102.321 139 108.993Z"/>
5
+ <path d="M139 147.958C139 154.617 133.645 160 127 160C120.548 160 115 154.617 115 147.958C115 141.272 120.548 135.889 127 135.889C133.651 135.896 139 141.272 139 147.958Z"/>
6
+ <path d="M103 31.0688C103 37.7543 97.6445 43.1108 91 43.1108C84.5482 43.1108 79 37.7543 79 31.0688C79 24.3832 84.5415 19 91 19C97.6512 19 103 24.3832 103 31.0688Z"/>
7
+ <path d="M103 69.9933C103 76.6789 97.6445 82.0621 91 82.0621C84.5482 82.0621 79 76.6789 79 69.9933C79 63.3211 84.5415 57.9513 91 57.9513C97.6512 57.9513 103 63.3211 103 69.9933Z"/>
8
+ <path d="M103 108.958C103 115.617 97.6445 121 91 121C84.5482 121 79 115.617 79 108.958C79 102.272 84.5415 96.8892 91 96.8892C97.6512 96.8959 103 102.272 103 108.958Z"/>
9
+ <path d="M65 70.0688C65 76.7543 59.6445 82.1108 53 82.1108C46.5482 82.1108 41 76.7543 41 70.0688C41 63.3832 46.5415 58 53 58C59.6512 58 65 63.3832 65 70.0688Z"/>
10
+ <path d="M65 108.993C65 115.679 59.6445 121.062 53 121.062C46.5482 121.062 41 115.679 41 108.993C41 102.321 46.5415 96.9513 53 96.9513C59.6512 96.9513 65 102.321 65 108.993Z"/>
11
+ <path d="M65 147.958C65 154.617 59.6445 160 53 160C46.5482 160 41 154.617 41 147.958C41 141.272 46.5415 135.889 53 135.889C59.6512 135.896 65 141.272 65 147.958Z"/>
12
+ </svg>
@@ -3,12 +3,12 @@
3
3
  "short_name": "Nitro",
4
4
  "icons": [
5
5
  {
6
- "src": "/assets/img/icon/android-chrome-192x192.png",
6
+ "src": "/assets/img/icon/icon-192x192.png",
7
7
  "sizes": "192x192",
8
8
  "type": "image/png"
9
9
  },
10
10
  {
11
- "src": "/assets/img/icon/android-chrome-512x512.png",
11
+ "src": "/assets/img/icon/icon-512x512.png",
12
12
  "sizes": "512x512",
13
13
  "type": "image/png"
14
14
  }
@@ -2,15 +2,11 @@
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
3
  <meta name="description" content="Nitro - {{_nitro.pageTitle}}">
4
4
  <meta name="robots" content="noindex, nofollow"><% if (options.exampleCode) { %>
5
- <link rel="apple-touch-icon" sizes="180x180" href="{{asset name='/img/icon/apple-touch-icon.png'}}">
6
- <link rel="icon" type="image/png" sizes="32x32" href="{{asset name='/img/icon/favicon-32x32.png'}}">
7
- <link rel="icon" type="image/png" sizes="16x16" href="{{asset name='/img/icon/favicon-16x16.png'}}">
5
+ <link rel="icon" href="{{asset name='/img/icon/favicon.ico'}}" sizes="any">
6
+ <link rel="icon" href="{{asset name='/img/icon/favicon.svg'}}" type="image/svg+xml">
7
+ <link rel="apple-touch-icon" href="{{asset name='/img/icon/apple-touch-icon.png'}}">
8
8
  <link rel="manifest" href="{{asset name='/img/icon/site.webmanifest'}}">
9
- <link rel="mask-icon" href="{{asset name='/img/icon/safari-pinned-tab.svg'}}" color="#2b5797">
10
- <link rel="shortcut icon" href="{{asset name='/img/icon/favicon.ico'}}">
11
- <meta name="msapplication-TileColor" content="#2b5797">
12
- <meta name="msapplication-config" content="{{asset name='/img/icon/browserconfig.xml'}}">
13
- <meta name="theme-color" content="#ffffff"><% } %>
9
+ <meta name="theme-color" content="#fafafa"><% } %>
14
10
  <title>{{_nitro.pageTitle}}</title>
15
11
  <meta name="format-detection" content="telephone=no">
16
12
  <link href="{{asset name='/css/ui.min.css'}}" rel="stylesheet">
@@ -2,15 +2,11 @@
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
3
  <meta name="description" content="Nitro - {{ _nitro.pageTitle }}">
4
4
  <meta name="robots" content="noindex, nofollow"><% if (options.exampleCode) { %>
5
- <link rel="apple-touch-icon" sizes="180x180" href="/assets/img/icon/apple-touch-icon.png">
6
- <link rel="icon" type="image/png" sizes="32x32" href="/assets/img/icon/favicon-32x32.png">
7
- <link rel="icon" type="image/png" sizes="16x16" href="/assets/img/icon/favicon-16x16.png">
5
+ <link rel="icon" href="/assets/img/icon/favicon.ico" sizes="any">
6
+ <link rel="icon" href="/assets/img/icon/favicon.svg" type="image/svg+xml">
7
+ <link rel="apple-touch-icon" href="/assets/img/icon/apple-touch-icon.png">
8
8
  <link rel="manifest" href="/assets/img/icon/site.webmanifest">
9
- <link rel="mask-icon" href="/assets/img/icon/safari-pinned-tab.svg" color="#2b5797">
10
- <link rel="shortcut icon" href="/assets/img/icon/favicon.ico">
11
- <meta name="msapplication-TileColor" content="#2b5797">
12
- <meta name="msapplication-config" content="/assets/img/icon/browserconfig.xml">
13
- <meta name="theme-color" content="#ffffff"><% } %>
9
+ <meta name="theme-color" content="#fafafa"><% } %>
14
10
  <title>{{ _nitro.pageTitle }}</title>
15
11
  <meta name="format-detection" content="telephone=no">
16
12
  <link href="/assets/css/ui{% if _nitro.production %}.min{% endif %}.css" rel="stylesheet">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-nitro",
3
- "version": "6.0.10",
3
+ "version": "6.1.1",
4
4
  "description": "Yeoman generator for the nitro frontend framework",
5
5
  "license": "MIT",
6
6
  "repository": "merkle-open/generator-nitro",
@@ -37,7 +37,7 @@
37
37
  "config": "3.3.7",
38
38
  "find-git-root": "1.0.4",
39
39
  "git-config": "0.0.7",
40
- "glob": "7.2.0",
40
+ "glob": "8.0.1",
41
41
  "got": "11.8.3",
42
42
  "lodash": "4.17.21",
43
43
  "yeoman-generator": "5.6.1",
@@ -45,11 +45,11 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@namics/eslint-config": "9.1.1",
48
- "ejs": "3.1.6",
48
+ "ejs": "3.1.7",
49
49
  "eslint": "7.32.0",
50
- "eslint-plugin-import": "2.25.4",
51
- "fs-extra": "10.0.1",
52
- "jasmine": "4.0.2",
50
+ "eslint-plugin-import": "2.26.0",
51
+ "fs-extra": "10.1.0",
52
+ "jasmine": "4.1.0",
53
53
  "yeoman-assert": "3.1.1",
54
54
  "yeoman-test": "6.3.0"
55
55
  }
@@ -1,27 +0,0 @@
1
- {
2
- "attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "marginwidth", "marginheight", "scrolling", "longdesc"],
3
- "attr-name-style": false,
4
- "attr-req-value": true,
5
- "class-no-dup": true,
6
- "class-style": "bem",
7
- "doctype-first": true,
8
- "doctype-html5": true,
9
- "html-req-lang": true,
10
- "id-class-no-ad": false,
11
- "id-class-style": "dash",
12
- "id-no-dup": true,
13
- "img-req-alt": "allownull",
14
- "img-req-src": true,
15
- "indent-width": false,
16
- "indent-style": "nonmixed",
17
- "label-req-for": true,
18
- "line-end-style": false,
19
- "line-no-trailing-whitespace": false,
20
- "raw-ignore-regex": "/<!-- htmllint ignore -->[^]*?<!-- htmllint unignore -->/",
21
- "tag-bans": ["style", "b", "i"],
22
- "tag-close": false,
23
- "tag-name-lowercase": true,
24
- "tag-name-match": true,
25
- "tag-self-close": false,
26
- "spec-char-escape": false
27
- }
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <browserconfig>
3
- <msapplication>
4
- <tile>
5
- <square150x150logo src="/assets/img/icon/mstile-150x150.png"/>
6
- <TileColor>#2b5797</TileColor>
7
- </tile>
8
- </msapplication>
9
- </browserconfig>
@@ -1,35 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
- width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
6
- preserveAspectRatio="xMidYMid meet">
7
- <metadata>
8
- Created by potrace 1.11, written by Peter Selinger 2001-2013
9
- </metadata>
10
- <g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
11
- fill="#000000" stroke="none">
12
- <path d="M3421 6244 c-229 -61 -382 -297 -341 -525 44 -252 282 -427 528 -389
13
- 310 48 483 381 347 668 -94 198 -322 303 -534 246z"/>
14
- <path d="M3465 4739 c-243 -35 -426 -287 -386 -531 45 -274 312 -451 576 -383
15
- 342 89 464 518 220 774 -108 113 -253 163 -410 140z"/>
16
- <path d="M1915 4719 c-365 -126 -432 -616 -113 -829 286 -191 663 -25 719 316
17
- 37 228 -113 461 -336 520 -76 21 -199 17 -270 -7z"/>
18
- <path d="M4798 4721 c-214 -69 -355 -296 -319 -514 26 -156 124 -286 267 -354
19
- 77 -37 82 -38 194 -38 109 0 119 2 183 32 89 42 140 83 193 156 155 211 95
20
- 525 -127 668 -107 68 -269 89 -391 50z"/>
21
- <path d="M1955 3216 c-159 -39 -303 -179 -345 -335 -19 -71 -14 -197 10 -265
22
- 75 -217 294 -353 510 -317 255 42 432 284 391 533 -45 271 -305 448 -566 384z"/>
23
- <path d="M3419 3216 c-226 -63 -380 -301 -340 -527 41 -229 231 -390 461 -390
24
- 260 -1 461 200 461 462 1 220 -136 399 -346 455 -62 17 -175 16 -236 0z"/>
25
- <path d="M4843 3219 c-109 -21 -236 -110 -298 -209 -118 -187 -87 -430 76
26
- -585 105 -101 252 -149 385 -127 314 52 488 387 348 670 -94 193 -300 293
27
- -511 251z"/>
28
- <path d="M2000 1709 c-314 -44 -495 -382 -356 -664 60 -121 162 -208 290 -247
29
- 55 -17 85 -20 158 -16 80 5 99 10 173 47 286 142 350 509 128 742 -64 68 -166
30
- 124 -241 134 -26 3 -58 7 -72 9 -14 1 -50 -1 -80 -5z"/>
31
- <path d="M4900 1713 c-111 -10 -203 -55 -287 -138 -173 -173 -187 -430 -34
32
- -623 82 -103 227 -172 360 -172 210 0 395 143 451 350 31 114 6 267 -60 371
33
- -92 143 -262 227 -430 212z"/>
34
- </g>
35
- </svg>