swico 0.8.5-beta8 → 0.8.5

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-beta8",
3
+ "version": "0.8.5",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -30,27 +30,35 @@
30
30
  "author": "scw",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
- "history": "5.3.0",
34
33
  "react": "~18.2.0",
35
34
  "react-dom": "~18.2.0",
36
35
  "react-router-dom": "6.22.3",
37
36
  "vue": "~3.4.14",
38
- "vue-router": "^4.2.5"
37
+ "vue-router": "^4.2.5",
38
+ "history": "5.3.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/plugin-transform-runtime": "^7.24.3",
42
- "@babel/preset-env": "^7.24.4",
41
+ "@types/react": "18.2.79",
42
+ "@types/react-dom": "18.2.25",
43
+ "@vue/compiler-sfc": "3.4.14",
44
+ "eslint-plugin-react": "7.33.2",
45
+ "eslint-plugin-react-hooks": "4.3.0",
46
+ "eslint-plugin-vue": "9.19.2",
47
+ "vue-loader": "17.4.2",
48
+ "vue-style-loader": "4.1.3",
49
+ "webpack": "5.88.2",
50
+ "webpack-bundle-analyzer": "4.9.1",
51
+ "webpack-cli": "5.1.4",
52
+ "webpack-dev-server": "4.15.2",
53
+ "webpack-merge": "5.9.0",
54
+ "webpackbar": "6.0.1",
43
55
  "@babel/types": "7.23.9",
44
56
  "@commitlint/cli": "18.5.0",
45
57
  "@commitlint/config-conventional": "18.5.0",
46
58
  "@swc/core": "1.4.6",
47
- "@types/react": "18.2.79",
48
- "@types/react-dom": "18.2.25",
49
59
  "@typescript-eslint/eslint-plugin": "6.19.0",
50
60
  "@typescript-eslint/parser": "6.19.0",
51
- "@vue/compiler-sfc": "3.4.14",
52
61
  "autoprefixer": "10.3.7",
53
- "babel-loader": "^9.1.3",
54
62
  "chalk": "4.1.2",
55
63
  "chokidar": "3.6.0",
56
64
  "commander": "12.0.0",
@@ -60,11 +68,8 @@
60
68
  "css-loader": "6.3.0",
61
69
  "esbuild-loader": "4.0.3",
62
70
  "eslint": "8.48.0",
63
- "eslint-plugin-react": "7.33.2",
64
- "eslint-plugin-react-hooks": "4.3.0",
65
- "eslint-plugin-vue": "9.19.2",
66
71
  "eslint-webpack-plugin": "4.0.0",
67
- "fork-ts-checker-webpack-plugin": "7.3.0",
72
+ "fork-ts-checker-webpack-plugin": "9.0.2",
68
73
  "html-loader": "5.0.0",
69
74
  "html-webpack-plugin": "5.3.2",
70
75
  "husky": "9.0.10",
@@ -80,14 +85,6 @@
80
85
  "style-loader": "3.3.0",
81
86
  "swc-loader": "0.2.6",
82
87
  "ts-node": "10.9.1",
83
- "typescript": "5.3.3",
84
- "vue-loader": "17.4.2",
85
- "vue-style-loader": "4.1.3",
86
- "webpack": "5.88.2",
87
- "webpack-bundle-analyzer": "4.9.1",
88
- "webpack-cli": "5.1.4",
89
- "webpack-dev-server": "4.15.2",
90
- "webpack-merge": "5.9.0",
91
- "webpackbar": "6.0.1"
88
+ "typescript": "5.3.3"
92
89
  }
93
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
@@ -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;
@@ -277,26 +275,6 @@ function default_1(_a) {
277
275
  },
278
276
  hash: true
279
277
  }),
280
- new fork_ts_checker_webpack_plugin_1.default({
281
- logger: {
282
- log: function () { },
283
- error: function (message) {
284
- tools_1.toast.error(message, { title: 'TypeScript errors' });
285
- }
286
- },
287
- typescript: {
288
- extensions: {
289
- vue: {
290
- enabled: true,
291
- compiler: '@vue/compiler-sfc'
292
- }
293
- },
294
- diagnosticOptions: {
295
- semantic: true,
296
- syntactic: true
297
- }
298
- }
299
- }),
300
278
  new mini_css_extract_plugin_1.default({
301
279
  filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
302
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,