@widget-js/cli 1.2.11 → 24.1.1-beta.2
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/jest.config.js +3 -3
- package/lib/{chunk-RAXJBANW.js → chunk-I4ZBPB2S.js} +6 -6
- package/lib/{chunk-IJH6LXRT.js → chunk-RDJH7Z4C.js} +5 -5
- package/lib/{chunk-3GPAHQ6O.js → chunk-XPJ33Y5L.js} +2 -2
- package/lib/{createWidget-UFW26NP6.js → createWidget-4LQ6PVEM.js} +16 -16
- package/lib/{dependencies-MRJDJJ6Q.js → dependencies-AVNHKRF3.js} +18 -18
- package/lib/index.js +7 -7
- package/lib/{init-MQONV3N3.js → init-HCEGKTNF.js} +15 -15
- package/lib/{release-XUYU5WNC.js → release-PIRAQ7A6.js} +47 -47
- package/package.json +17 -15
- package/src/build/build.ts +8 -8
- package/src/createWidget.ts +46 -40
- package/src/dependencies/index.ts +6 -5
- package/src/dependencies/localDependencies.ts +17 -18
- package/src/dependencies/remoteDependencies.ts +22 -25
- package/src/index.ts +36 -36
- package/src/init/init.ts +23 -21
- package/src/promts/promptChecker.ts +10 -8
- package/src/release/ftp.ts +31 -27
- package/src/release/oss.ts +41 -38
- package/src/release/release.ts +17 -24
- package/src/release/update-zip.ts +14 -14
- package/src/utils/EJSUtils.ts +10 -9
- package/src/utils/PrettierUtils.ts +3 -2
- package/src/utils/WidgetPackageUtils.ts +5 -5
- package/src/utils.ts +31 -27
- package/template/WidgetConfig.ejs +7 -6
- package/template/widget-router.ts +5 -4
- package/test/index.test.ts +7 -7
- package/tsconfig.json +25 -25
- package/tsup.config.ts +4 -4
- package/vite.config.ts +5 -5
- package/release-xyy.json +0 -7
package/tsconfig.json
CHANGED
|
@@ -5,7 +5,26 @@
|
|
|
5
5
|
/* Basic Options */
|
|
6
6
|
// "incremental": true, /* Enable incremental compilation */
|
|
7
7
|
"target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
|
|
8
|
-
"
|
|
8
|
+
"lib": ["esnext"],
|
|
9
|
+
"rootDir": "src",
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
12
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
13
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
14
|
+
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
15
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
16
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
17
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
18
|
+
|
|
19
|
+
/* Additional Checks */
|
|
20
|
+
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
21
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
22
|
+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
23
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
24
|
+
|
|
25
|
+
/* Module Resolution Options */
|
|
26
|
+
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
27
|
+
"types": ["node"], /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
9
28
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
10
29
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
11
30
|
// "checkJs": true, /* Report errors in .js files. */
|
|
@@ -26,31 +45,17 @@
|
|
|
26
45
|
|
|
27
46
|
/* Strict Type-Checking Options */
|
|
28
47
|
"strict": true /* Enable all strict type-checking options. */,
|
|
29
|
-
|
|
30
|
-
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
31
|
-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
32
|
-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
33
|
-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
34
|
-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
35
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
36
|
-
|
|
37
|
-
/* Additional Checks */
|
|
38
|
-
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
39
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
40
|
-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
41
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
42
|
-
|
|
43
|
-
/* Module Resolution Options */
|
|
44
|
-
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
48
|
+
"outDir": "lib",
|
|
45
49
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
46
50
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
47
51
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
48
52
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
49
53
|
/* Type declaration files to be included in compilation. */
|
|
50
|
-
// "types": ["element-plus/global"],
|
|
54
|
+
// "types": ["element-plus/global"],
|
|
51
55
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
52
56
|
// "resolveJsonModule": true,
|
|
53
57
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
58
|
+
"forceConsistentCasingInFileNames": true,
|
|
54
59
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
55
60
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
56
61
|
|
|
@@ -67,12 +72,7 @@
|
|
|
67
72
|
/* Advanced Options */
|
|
68
73
|
|
|
69
74
|
/* Skip type checking of declaration files. */
|
|
70
|
-
"skipLibCheck": true
|
|
71
|
-
"types": ["node"],
|
|
72
|
-
"rootDir": "src",
|
|
73
|
-
"outDir": "lib",
|
|
74
|
-
"lib": ["esnext"],
|
|
75
|
-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
75
|
+
"skipLibCheck": true /* Disallow inconsistently-cased references to the same file. */
|
|
76
76
|
},
|
|
77
|
-
"include": ["src/**/*"]
|
|
77
|
+
"include": ["src/**/*"]
|
|
78
78
|
}
|
package/tsup.config.ts
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { URL, fileURLToPath } from 'node:url'
|
|
2
|
+
import widget from '@widget-js/vite-plugin-widget'
|
|
3
3
|
|
|
4
|
-
import { defineConfig } from 'vite'
|
|
5
|
-
import vue from '@vitejs/plugin-vue'
|
|
4
|
+
import { defineConfig } from 'vite'
|
|
5
|
+
import vue from '@vitejs/plugin-vue'
|
|
6
6
|
|
|
7
7
|
// https://vitejs.dev/config/
|
|
8
8
|
export default defineConfig({
|
|
@@ -12,4 +12,4 @@ export default defineConfig({
|
|
|
12
12
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
|
-
})
|
|
15
|
+
})
|