@nitro/exporter 11.0.0-beta.2 → 11.0.0-beta.3
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 +6 -6
- package/tasks/export-views.js +10 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitro/exporter",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.3",
|
|
4
4
|
"description": "An exporting package for nitro. Generate static packages with ease.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"exporter"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@nitro/app": ">=11.0.0-beta.
|
|
32
|
-
"@nitro/gulp": ">=11.0.0-beta.
|
|
31
|
+
"@nitro/app": ">=11.0.0-beta.3",
|
|
32
|
+
"@nitro/gulp": ">=11.0.0-beta.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"array-unique": "0.3.2",
|
|
36
36
|
"del": "8.0.1",
|
|
37
37
|
"delete-empty": "3.0.0",
|
|
38
|
-
"glob": "13.0.
|
|
38
|
+
"glob": "13.0.5",
|
|
39
39
|
"glob-parent": "6.0.2",
|
|
40
|
-
"gulp-filter": "
|
|
41
|
-
"gulp-html-minifier-terser": "
|
|
40
|
+
"gulp-filter": "9.0.1",
|
|
41
|
+
"gulp-html-minifier-terser": "8.0.0",
|
|
42
42
|
"gulp-zip": "6.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
package/tasks/export-views.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const nitroTmpDirectory = `${config.get('nitro.tmpDirectory')}/views`;
|
|
8
|
-
const processes = [];
|
|
1
|
+
const utils = require('../lib/utils.js');
|
|
2
|
+
|
|
3
|
+
module.exports = async function (gulp, config) {
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
const { default: filter } = await import('gulp-filter');
|
|
7
|
+
const nitroTmpDirectory = `${config.get('nitro.tmpDirectory')}/views`;
|
|
8
|
+
const processes = [];
|
|
9
9
|
|
|
10
10
|
utils.each(config.exporter, (configEntry) => {
|
|
11
11
|
processes.push(
|
|
@@ -43,9 +43,5 @@ module.exports = function (gulp, config) {
|
|
|
43
43
|
);
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
resolve();
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
46
|
+
return Promise.all(processes);
|
|
47
|
+
};
|