@nitro/gulp 9.5.0 → 10.0.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.
- package/package.json +11 -11
- package/tasks/dump-views.js +3 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitro/gulp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Nitro gulp",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Nitro Team",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=18.
|
|
9
|
-
"npm": ">=8.
|
|
8
|
+
"node": ">=20.18.1 <21",
|
|
9
|
+
"npm": ">=10.8.2 <11"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "eslint .",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"gulp"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@nitro/app": ">=
|
|
26
|
+
"@nitro/app": ">=10.0.1",
|
|
27
27
|
"gulp": ">=5.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"browser-sync": "3.0.4",
|
|
31
|
-
"compression": "1.8.
|
|
32
|
-
"config": "
|
|
31
|
+
"compression": "1.8.1",
|
|
32
|
+
"config": "4.1.1",
|
|
33
33
|
"del": "6.1.1",
|
|
34
34
|
"get-port": "5.1.1",
|
|
35
35
|
"globby": "11.1.0",
|
|
36
|
-
"gulp": "5.0.
|
|
36
|
+
"gulp": "5.0.1",
|
|
37
37
|
"gulp-html-validate": "0.2.0",
|
|
38
38
|
"gulp-imagemin": "7.1.0",
|
|
39
39
|
"gulp-live-server": "0.0.31",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"gulp-newer": "1.4.0",
|
|
42
42
|
"gulp-plumber": "1.2.1",
|
|
43
43
|
"gulp-remote-src": "0.4.4",
|
|
44
|
-
"gulp-rename": "2.
|
|
44
|
+
"gulp-rename": "2.1.0",
|
|
45
45
|
"gulp-svgmin": "4.1.0",
|
|
46
46
|
"gulp-svgstore": "9.0.0",
|
|
47
47
|
"html-validate": "7.18.1",
|
|
48
48
|
"ordered-read-streams": "2.0.0",
|
|
49
|
-
"yargs": "
|
|
49
|
+
"yargs": "18.0.0"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
52
|
"imagemin-pngquant": "9.0.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@merkle-open/eslint-config": "4.0.
|
|
55
|
+
"@merkle-open/eslint-config": "4.0.1",
|
|
56
56
|
"@nitro/app": "*",
|
|
57
57
|
"eslint": "8.57.1",
|
|
58
|
-
"eslint-plugin-import": "2.
|
|
58
|
+
"eslint-plugin-import": "2.32.0"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
package/tasks/dump-views.js
CHANGED
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
* If you specify languages, your HTML views will be suffixed with the provided locale, e.g. index-en.html
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const yargs = require('yargs');
|
|
19
|
+
const { hideBin } = require('yargs/helpers');
|
|
19
20
|
const config = require('config');
|
|
20
21
|
const view = require('@nitro/app/app/lib/view');
|
|
21
22
|
const del = require('del');
|
|
22
23
|
const getPort = require('get-port');
|
|
23
24
|
|
|
25
|
+
const argv = yargs(hideBin(process.argv)).argv;
|
|
24
26
|
const serverPath = require('@nitro/app/app/lib/utils').getServerPath();
|
|
25
27
|
const tmpDirectory = `${config.get('nitro.tmpDirectory')}/views`;
|
|
26
28
|
const viewFilter = (viewItem) => {
|