@nitro/exporter 11.0.12 → 12.0.0-beta.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/index.js +0 -2
- package/lib/utils.js +0 -2
- package/package.json +7 -8
- package/tasks/export-clean.js +0 -2
- package/tasks/export-processing.js +1 -4
- package/tasks/export-views.js +0 -2
package/index.js
CHANGED
package/lib/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitro/exporter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-beta.1",
|
|
4
4
|
"description": "An exporting package for nitro. Generate static packages with ease.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
},
|
|
10
10
|
"author": "The Nitro Team",
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=22.
|
|
12
|
+
"node": ">=22.16.0 <25",
|
|
13
13
|
"npm": ">=10.9.0 <12"
|
|
14
14
|
},
|
|
15
15
|
"main": "index.js",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"lint": "eslint .",
|
|
17
|
+
"lint": "eslint lib tasks index.js",
|
|
18
18
|
"prepublishOnly": "npx -y pkg-ok@2.3.1",
|
|
19
19
|
"test": "npm run lint"
|
|
20
20
|
},
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"exporter"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@nitro/app": ">=
|
|
32
|
-
"@nitro/gulp": ">=
|
|
31
|
+
"@nitro/app": ">=12.0.0-beta.1",
|
|
32
|
+
"@nitro/gulp": ">=12.0.0-beta.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"array-unique": "0.3.2",
|
|
@@ -42,10 +42,9 @@
|
|
|
42
42
|
"gulp-zip": "6.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@merkle-open/eslint-config": "
|
|
45
|
+
"@merkle-open/eslint-config": "5.0.0",
|
|
46
46
|
"@nitro/app": "*",
|
|
47
|
-
"eslint": "
|
|
48
|
-
"eslint-plugin-import": "2.32.0"
|
|
47
|
+
"eslint": "9.39.5"
|
|
49
48
|
},
|
|
50
49
|
"publishConfig": {
|
|
51
50
|
"access": "public"
|
package/tasks/export-clean.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
const del = (...args) => import('del').then(m => m.deleteAsync(...args));
|
|
4
2
|
const deleteEmpty = require('delete-empty');
|
|
5
3
|
const fs = require('fs');
|
|
@@ -12,8 +10,6 @@ const unique = require('array-unique');
|
|
|
12
10
|
const utils = require('../lib/utils.js');
|
|
13
11
|
|
|
14
12
|
module.exports = function (gulp, config) {
|
|
15
|
-
'use strict';
|
|
16
|
-
|
|
17
13
|
const processes = [];
|
|
18
14
|
|
|
19
15
|
utils.each(config.exporter, (configEntry) => {
|
|
@@ -160,6 +156,7 @@ module.exports = function (gulp, config) {
|
|
|
160
156
|
|
|
161
157
|
if (configEntry.zip) {
|
|
162
158
|
getZipPromise = function () {
|
|
159
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
163
160
|
return new Promise(async (resolve, reject) => {
|
|
164
161
|
try {
|
|
165
162
|
const { default: gulpZip } = await import('gulp-zip');
|
package/tasks/export-views.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
const utils = require('../lib/utils.js');
|
|
2
2
|
|
|
3
3
|
module.exports = async function (gulp, config) {
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
4
|
const { default: filter } = await import('gulp-filter');
|
|
7
5
|
const nitroTmpDirectory = `${config.get('nitro.tmpDirectory')}/views`;
|
|
8
6
|
const processes = [];
|