@ixon-cdk/static-builder 1.21.0 → 1.22.0-next.0
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/browser.js +9 -9
- package/index.js +8 -7
- package/package.json +7 -3
package/browser.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const {
|
|
4
|
-
getRootDir,
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import {
|
|
5
3
|
cleanDir,
|
|
6
|
-
watchInputDir,
|
|
7
|
-
writeDemoFile,
|
|
8
4
|
copyAssets,
|
|
5
|
+
getRootDir,
|
|
9
6
|
watchAssets,
|
|
10
|
-
|
|
7
|
+
watchInputDir,
|
|
8
|
+
writeDemoFile,
|
|
9
|
+
} from '@ixon-cdk/core';
|
|
10
|
+
import { build } from 'vite';
|
|
11
11
|
|
|
12
12
|
async function _build(
|
|
13
13
|
inputFile,
|
|
@@ -77,7 +77,7 @@ async function _build(
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
export default function runBuild(
|
|
81
81
|
inputFile,
|
|
82
82
|
outputFile,
|
|
83
83
|
tag,
|
|
@@ -95,4 +95,4 @@ module.exports = function runBuild(
|
|
|
95
95
|
watch,
|
|
96
96
|
sourceMap,
|
|
97
97
|
);
|
|
98
|
-
}
|
|
98
|
+
}
|
package/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { getArgv, getRootDir, logErrorMessage } from '@ixon-cdk/core';
|
|
4
|
+
import isPotentialCustomElementName from 'is-potential-custom-element-name';
|
|
5
|
+
import runBrowserBuild from './browser.js';
|
|
5
6
|
|
|
6
|
-
function main() {
|
|
7
|
+
async function main() {
|
|
7
8
|
const argv = getArgv();
|
|
8
9
|
const buildTarget = argv._[0];
|
|
9
10
|
const tag = argv._[1];
|
|
@@ -27,13 +28,13 @@ function main() {
|
|
|
27
28
|
|
|
28
29
|
if (!isPotentialCustomElementName(tag)) {
|
|
29
30
|
logErrorMessage(
|
|
30
|
-
`Custom element name '${tag}' is invalid. See https://html.spec.whatwg.org/multipage/custom-elements.html#
|
|
31
|
+
`Custom element name '${tag}' is invalid. See https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name`,
|
|
31
32
|
);
|
|
32
33
|
process.exit(1);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
if (buildTarget === 'browser') {
|
|
36
|
-
|
|
37
|
+
await runBrowserBuild(input, output, tag, assets, true, watch, sourceMap);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixon-cdk/static-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0-next.0",
|
|
4
4
|
"description": "",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.js"
|
|
9
|
+
},
|
|
6
10
|
"author": "",
|
|
7
11
|
"license": "ISC",
|
|
8
12
|
"dependencies": {
|
|
9
13
|
"is-potential-custom-element-name": "^1.0.1",
|
|
10
|
-
"vite": "^
|
|
14
|
+
"vite": "^7.2.6"
|
|
11
15
|
},
|
|
12
16
|
"peerDependencies": {
|
|
13
|
-
"@ixon-cdk/core": "^1.
|
|
17
|
+
"@ixon-cdk/core": "^1.22.0-next.0"
|
|
14
18
|
}
|
|
15
19
|
}
|