@tuya-sat/micro-script 3.3.14 → 3.3.15
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/dist/config/webpack.common.js +5 -0
- package/package.json +33 -32
|
@@ -36,6 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.validateMicroTheme = void 0;
|
|
39
|
+
const webpack_1 = __importDefault(require("webpack"));
|
|
39
40
|
const webpack_merge_1 = require("webpack-merge");
|
|
40
41
|
//@ts-ignore
|
|
41
42
|
const copy_webpack_plugin_1 = __importDefault(require("copy-webpack-plugin"));
|
|
@@ -209,6 +210,10 @@ function getCommonConfig({ isDev, isBuild, port, }) {
|
|
|
209
210
|
minimizer: ['...', new css_minimizer_webpack_plugin_1.default()],
|
|
210
211
|
},
|
|
211
212
|
plugins: [
|
|
213
|
+
new webpack_1.default.ProvidePlugin({
|
|
214
|
+
process: 'process/browser',
|
|
215
|
+
Buffer: ['buffer', 'Buffer'],
|
|
216
|
+
}),
|
|
212
217
|
new html_webpack_plugin_1.default({
|
|
213
218
|
inject: true,
|
|
214
219
|
template: paths_1.default.spaHtml,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.15",
|
|
4
4
|
"bin": "./dist/bin/cli.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,6 +15,29 @@
|
|
|
15
15
|
"prepublish": "yarn build"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@tuya-sat/micro-dev-loader": "3.3.15",
|
|
19
|
+
"@tuya-sat/micro-dev-proxy": "3.3.15",
|
|
20
|
+
"@tuya-sat/micro-utils": "3.3.15",
|
|
21
|
+
"chalk": "4.1.2",
|
|
22
|
+
"cheerio": "1.0.0-rc.10",
|
|
23
|
+
"cors": "^2.8.5",
|
|
24
|
+
"express": "4.17.3",
|
|
25
|
+
"fs-extra": "^10.1.0",
|
|
26
|
+
"joi": "17.6.0",
|
|
27
|
+
"kill-port": "^2.0.1",
|
|
28
|
+
"mime": "^3.0.0",
|
|
29
|
+
"open": "8.4.0",
|
|
30
|
+
"ora": "5.4.1",
|
|
31
|
+
"path-to-regexp": "6.2.0",
|
|
32
|
+
"portfinder": "1.0.28",
|
|
33
|
+
"prettier": "^2.8.8",
|
|
34
|
+
"react-refresh": "0.11.0",
|
|
35
|
+
"socket.io": "^4.6.0",
|
|
36
|
+
"uid": "^2.0.1",
|
|
37
|
+
"update-notifier": "5.1.0",
|
|
38
|
+
"uuid": "8.3.2"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
18
41
|
"@babel/core": "7.17.8",
|
|
19
42
|
"@babel/generator": "^7.20.14",
|
|
20
43
|
"@babel/parser": "^7.20.15",
|
|
@@ -23,49 +46,37 @@
|
|
|
23
46
|
"@babel/preset-typescript": "7.16.7",
|
|
24
47
|
"@babel/traverse": "^7.20.13",
|
|
25
48
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@tuya-sat/micro-utils": "3.3.14",
|
|
49
|
+
"@types/express": "4.17.13",
|
|
50
|
+
"@types/jest": "27.4.1",
|
|
29
51
|
"@types/kill-port": "^2.0.0",
|
|
52
|
+
"@types/uuid": "8.3.4",
|
|
53
|
+
"@types/webpack-stats-plugin": "^0.3.2",
|
|
30
54
|
"babel-loader": "8.2.4",
|
|
31
55
|
"babel-plugin-import": "1.13.3",
|
|
32
|
-
"chalk": "4.1.2",
|
|
33
|
-
"cheerio": "1.0.0-rc.10",
|
|
34
56
|
"copy-webpack-plugin": "10.2.4",
|
|
35
|
-
"
|
|
57
|
+
"buffer": "^6.0.3",
|
|
36
58
|
"css-loader": "6.7.1",
|
|
37
59
|
"css-minimizer-webpack-plugin": "3.4.1",
|
|
38
|
-
"express": "4.17.3",
|
|
39
60
|
"fork-ts-checker-webpack-plugin": "7.2.1",
|
|
40
|
-
"fs-extra": "^10.1.0",
|
|
41
61
|
"html-webpack-plugin": "5.5.0",
|
|
42
62
|
"http-proxy-middleware": "2.0.4",
|
|
43
|
-
"
|
|
44
|
-
"kill-port": "^2.0.1",
|
|
63
|
+
"jest": "27.5.1",
|
|
45
64
|
"less": "4.1.2",
|
|
46
65
|
"less-loader": "10.2.0",
|
|
47
|
-
"mime": "^3.0.0",
|
|
48
66
|
"mini-css-extract-plugin": "2.6.0",
|
|
49
|
-
"open": "8.4.0",
|
|
50
|
-
"ora": "5.4.1",
|
|
51
|
-
"path-to-regexp": "6.2.0",
|
|
52
|
-
"portfinder": "1.0.28",
|
|
53
67
|
"postcss": "8.4.12",
|
|
54
68
|
"postcss-loader": "6.2.1",
|
|
55
69
|
"postcss-preset-env": "7.4.3",
|
|
56
|
-
"prettier": "^2.8.8",
|
|
57
|
-
"react-refresh": "0.11.0",
|
|
58
70
|
"resolve-url-loader": "5.0.0",
|
|
59
71
|
"sass": "1.49.9",
|
|
60
72
|
"sass-loader": "12.6.0",
|
|
61
|
-
"socket.io": "^4.6.0",
|
|
62
73
|
"style-loader": "3.3.1",
|
|
63
74
|
"svg-url-loader": "7.1.1",
|
|
75
|
+
"terser-webpack-plugin": "^5.3.6",
|
|
76
|
+
"ts-jest": "27.1.3",
|
|
64
77
|
"tsconfig-paths-webpack-plugin": "^4.0.0",
|
|
65
|
-
"
|
|
66
|
-
"update-notifier": "5.1.0",
|
|
78
|
+
"typescript": "4.6.2",
|
|
67
79
|
"url-loader": "4.1.1",
|
|
68
|
-
"uuid": "8.3.2",
|
|
69
80
|
"vue-loader": "17.0.0",
|
|
70
81
|
"webpack": "5.94.0",
|
|
71
82
|
"webpack-cli": "5.0.1",
|
|
@@ -74,16 +85,6 @@
|
|
|
74
85
|
"webpack-merge": "5.8.0",
|
|
75
86
|
"webpack-stats-plugin": "^1.1.1"
|
|
76
87
|
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/express": "4.17.13",
|
|
79
|
-
"@types/jest": "27.4.1",
|
|
80
|
-
"@types/uuid": "8.3.4",
|
|
81
|
-
"@types/webpack-stats-plugin": "^0.3.2",
|
|
82
|
-
"jest": "27.5.1",
|
|
83
|
-
"terser-webpack-plugin": "^5.3.6",
|
|
84
|
-
"ts-jest": "27.1.3",
|
|
85
|
-
"typescript": "4.6.2"
|
|
86
|
-
},
|
|
87
88
|
"keywords": [
|
|
88
89
|
"saturn-project",
|
|
89
90
|
"micro-frontend",
|