swico 0.8.5-beta14 → 0.8.5-beta15
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swico",
|
|
3
|
-
"version": "0.8.5-
|
|
3
|
+
"version": "0.8.5-beta15",
|
|
4
4
|
"description": "Simple, efficient, and practical front-end framework",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"history": "5.3.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/types": "7.23.9",
|
|
42
41
|
"@types/react": "18.2.79",
|
|
43
42
|
"@types/react-dom": "18.2.25",
|
|
44
43
|
"@vue/compiler-sfc": "3.4.14",
|
|
@@ -53,6 +52,7 @@
|
|
|
53
52
|
"webpack-dev-server": "4.15.2",
|
|
54
53
|
"webpack-merge": "5.9.0",
|
|
55
54
|
"webpackbar": "6.0.1",
|
|
55
|
+
"@babel/types": "7.23.9",
|
|
56
56
|
"@commitlint/cli": "18.5.0",
|
|
57
57
|
"@commitlint/config-conventional": "18.5.0",
|
|
58
58
|
"@swc/core": "1.4.6",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"esbuild-loader": "4.0.3",
|
|
70
70
|
"eslint": "8.48.0",
|
|
71
71
|
"eslint-webpack-plugin": "4.0.0",
|
|
72
|
-
"fork-ts-checker-webpack-plugin": "
|
|
72
|
+
"fork-ts-checker-webpack-plugin": "9.0.2",
|
|
73
73
|
"html-loader": "5.0.0",
|
|
74
74
|
"html-webpack-plugin": "5.3.2",
|
|
75
75
|
"husky": "9.0.10",
|
|
@@ -85,7 +85,6 @@
|
|
|
85
85
|
"style-loader": "3.3.0",
|
|
86
86
|
"swc-loader": "0.2.6",
|
|
87
87
|
"ts-node": "10.9.1",
|
|
88
|
-
"ts-loader": "9.5.1",
|
|
89
88
|
"typescript": "5.3.3"
|
|
90
89
|
}
|
|
91
90
|
}
|
|
@@ -63,9 +63,7 @@ var path_1 = __importDefault(require("path"));
|
|
|
63
63
|
var mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
64
64
|
var config_1 = require("../utils/config");
|
|
65
65
|
var html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
|
|
66
|
-
var fork_ts_checker_webpack_plugin_1 = __importDefault(require("fork-ts-checker-webpack-plugin"));
|
|
67
66
|
var webpack_1 = __importDefault(require("webpack"));
|
|
68
|
-
var tools_1 = require("../utils/tools");
|
|
69
67
|
function default_1(_a) {
|
|
70
68
|
var _b, _c, _d;
|
|
71
69
|
var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
|
|
@@ -260,20 +258,6 @@ function default_1(_a) {
|
|
|
260
258
|
},
|
|
261
259
|
hash: true
|
|
262
260
|
}),
|
|
263
|
-
new fork_ts_checker_webpack_plugin_1.default({
|
|
264
|
-
logger: {
|
|
265
|
-
log: function () { },
|
|
266
|
-
error: function (message) {
|
|
267
|
-
tools_1.toast.error(message, { title: 'TypeScript errors' });
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
typescript: {
|
|
271
|
-
diagnosticOptions: {
|
|
272
|
-
semantic: true,
|
|
273
|
-
syntactic: true
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}),
|
|
277
261
|
new mini_css_extract_plugin_1.default({
|
|
278
262
|
filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
|
|
279
263
|
ignoreOrder: true
|
|
@@ -19,23 +19,6 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
|
|
|
19
19
|
exclude: RegExp;
|
|
20
20
|
use?: undefined;
|
|
21
21
|
oneOf?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
test: RegExp;
|
|
24
|
-
exclude: RegExp;
|
|
25
|
-
use: {
|
|
26
|
-
loader: string;
|
|
27
|
-
options: {
|
|
28
|
-
jsc: {
|
|
29
|
-
parser: {
|
|
30
|
-
decorators: boolean;
|
|
31
|
-
dynamicImport: boolean;
|
|
32
|
-
};
|
|
33
|
-
target: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}[];
|
|
37
|
-
loader?: undefined;
|
|
38
|
-
oneOf?: undefined;
|
|
39
22
|
} | {
|
|
40
23
|
test: RegExp;
|
|
41
24
|
exclude: RegExp;
|
|
@@ -63,10 +63,8 @@ var path_1 = __importDefault(require("path"));
|
|
|
63
63
|
var mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
64
64
|
var config_1 = require("../utils/config");
|
|
65
65
|
var html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
|
|
66
|
-
var fork_ts_checker_webpack_plugin_1 = __importDefault(require("fork-ts-checker-webpack-plugin"));
|
|
67
66
|
var webpack_1 = __importDefault(require("webpack"));
|
|
68
67
|
var vue_loader_1 = require("vue-loader");
|
|
69
|
-
var tools_1 = require("../utils/tools");
|
|
70
68
|
function default_1(_a) {
|
|
71
69
|
var _b, _c, _d;
|
|
72
70
|
var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
|
|
@@ -116,24 +114,6 @@ function default_1(_a) {
|
|
|
116
114
|
loader: 'vue-loader',
|
|
117
115
|
exclude: /node_modules/
|
|
118
116
|
},
|
|
119
|
-
{
|
|
120
|
-
test: /\.js$/,
|
|
121
|
-
exclude: /node_modules/,
|
|
122
|
-
use: [
|
|
123
|
-
{
|
|
124
|
-
loader: 'swc-loader',
|
|
125
|
-
options: {
|
|
126
|
-
jsc: {
|
|
127
|
-
parser: {
|
|
128
|
-
decorators: true,
|
|
129
|
-
dynamicImport: true
|
|
130
|
-
},
|
|
131
|
-
target: 'es2015'
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
117
|
{
|
|
138
118
|
test: /\.(ts|js)$/,
|
|
139
119
|
exclude: /node_modules/,
|
|
@@ -295,26 +275,6 @@ function default_1(_a) {
|
|
|
295
275
|
},
|
|
296
276
|
hash: true
|
|
297
277
|
}),
|
|
298
|
-
new fork_ts_checker_webpack_plugin_1.default({
|
|
299
|
-
logger: {
|
|
300
|
-
log: function () { },
|
|
301
|
-
error: function (message) {
|
|
302
|
-
tools_1.toast.error(message, { title: 'TypeScript errors' });
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
typescript: {
|
|
306
|
-
extensions: {
|
|
307
|
-
vue: {
|
|
308
|
-
enabled: true,
|
|
309
|
-
compiler: '@vue/compiler-sfc'
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
diagnosticOptions: {
|
|
313
|
-
semantic: true,
|
|
314
|
-
syntactic: true
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}),
|
|
318
278
|
new mini_css_extract_plugin_1.default({
|
|
319
279
|
filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
|
|
320
280
|
ignoreOrder: true
|
|
@@ -86,6 +86,8 @@ var config_1 = require("../utils/config");
|
|
|
86
86
|
var path_1 = __importDefault(require("path"));
|
|
87
87
|
var webpack_merge_1 = require("webpack-merge");
|
|
88
88
|
var eslint_webpack_plugin_1 = __importDefault(require("eslint-webpack-plugin"));
|
|
89
|
+
var fork_ts_checker_webpack_plugin_1 = __importDefault(require("fork-ts-checker-webpack-plugin"));
|
|
90
|
+
var tools_1 = require("../utils/tools");
|
|
89
91
|
function default_1(options) {
|
|
90
92
|
var _a, _b, _c, _d, _e;
|
|
91
93
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -126,6 +128,20 @@ function default_1(options) {
|
|
|
126
128
|
server: customConfig.dev.https === true ? 'https' : 'http'
|
|
127
129
|
},
|
|
128
130
|
plugins: __spreadArray([
|
|
131
|
+
new fork_ts_checker_webpack_plugin_1.default({
|
|
132
|
+
logger: {
|
|
133
|
+
log: function () { },
|
|
134
|
+
error: function (message) {
|
|
135
|
+
tools_1.toast.error(message, { title: 'TypeScript errors' });
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
typescript: {
|
|
139
|
+
diagnosticOptions: {
|
|
140
|
+
semantic: true,
|
|
141
|
+
syntactic: true
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}),
|
|
129
145
|
new eslint_webpack_plugin_1.default({
|
|
130
146
|
context: path_1.default.join(projectPath, '/src'),
|
|
131
147
|
failOnError: false,
|