swico 0.8.1-beta11 → 0.8.1-beta13

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.1-beta11",
3
+ "version": "0.8.1-beta13",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -171,7 +171,7 @@ function start() {
171
171
  _b.sent();
172
172
  compiler.getInfrastructureLogger = oriLogger;
173
173
  handleWatch(projectPath, devServer);
174
- tools_1.toast.info("Project is running at:http://localhost:".concat(availablePort, "/"));
174
+ tools_1.toast.info("Project is running at\uFF1A".concat(startConfig.devServer.server, "://localhost:").concat(availablePort, "/"));
175
175
  return [3, 10];
176
176
  case 9:
177
177
  e_1 = _b.sent();
@@ -65,6 +65,7 @@ var config_1 = require("../utils/config");
65
65
  var html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
66
66
  var fork_ts_checker_webpack_plugin_1 = __importDefault(require("fork-ts-checker-webpack-plugin"));
67
67
  var webpack_1 = __importDefault(require("webpack"));
68
+ var webpackbar_1 = __importDefault(require("webpackbar"));
68
69
  function default_1(_a) {
69
70
  var _b, _c, _d;
70
71
  var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
@@ -270,6 +271,11 @@ function default_1(_a) {
270
271
  new mini_css_extract_plugin_1.default({
271
272
  filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
272
273
  ignoreOrder: true
274
+ }),
275
+ new webpackbar_1.default({
276
+ name: 'Swico',
277
+ color: '#7888FCFF',
278
+ profile: false
273
279
  })
274
280
  ], false), ((customBaseConfig === null || customBaseConfig === void 0 ? void 0 : customBaseConfig.plugins) || config_1.initConfig.plugins), true)
275
281
  }];
@@ -63,9 +63,9 @@ 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");
68
+ var webpackbar_1 = __importDefault(require("webpackbar"));
69
69
  function default_1(_a) {
70
70
  var _b, _c, _d;
71
71
  var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
@@ -276,17 +276,14 @@ function default_1(_a) {
276
276
  },
277
277
  hash: true
278
278
  }),
279
- new fork_ts_checker_webpack_plugin_1.default({
280
- typescript: {
281
- diagnosticOptions: {
282
- semantic: true,
283
- syntactic: true
284
- }
285
- }
286
- }),
287
279
  new mini_css_extract_plugin_1.default({
288
280
  filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
289
281
  ignoreOrder: true
282
+ }),
283
+ new webpackbar_1.default({
284
+ name: 'Swico',
285
+ color: '#7888FCFF',
286
+ profile: false
290
287
  })
291
288
  ], false), ((customBaseConfig === null || customBaseConfig === void 0 ? void 0 : customBaseConfig.plugins) || config_1.initConfig.plugins), true)
292
289
  }];
@@ -89,7 +89,6 @@ var fs_extra_1 = __importDefault(require("fs-extra"));
89
89
  var config_1 = require("../utils/config");
90
90
  var webpack_merge_1 = require("webpack-merge");
91
91
  var esbuild_loader_1 = require("esbuild-loader");
92
- var webpackbar_1 = __importDefault(require("webpackbar"));
93
92
  var BundleAnalyzerPlugin = webpack_bundle_analyzer_1.default.BundleAnalyzerPlugin;
94
93
  var isAnalyze = process.env.ANALYZE === 'true';
95
94
  function default_1(options) {
@@ -156,7 +155,7 @@ function default_1(options) {
156
155
  }
157
156
  }
158
157
  },
159
- plugins: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], (isPublicDirExist || copyConfig.length > 0
158
+ plugins: __spreadArray(__spreadArray(__spreadArray([], (isPublicDirExist || copyConfig.length > 0
160
159
  ? [
161
160
  new copy_webpack_plugin_1.default({
162
161
  patterns: __spreadArray(__spreadArray([], (isPublicDirExist ? [path_1.default.join(projectPath, '/public')] : []), true), copyConfig, true)
@@ -177,13 +176,7 @@ function default_1(options) {
177
176
  logLevel: 'info'
178
177
  })
179
178
  ]
180
- : []), true), [
181
- new webpackbar_1.default({
182
- name: 'Swico',
183
- color: '#5f72f5',
184
- profile: false
185
- })
186
- ], false), ((_g = (_f = customConfig.prod) === null || _f === void 0 ? void 0 : _f.plugins) !== null && _g !== void 0 ? _g : []), true)
179
+ : []), true), ((_g = (_f = customConfig.prod) === null || _f === void 0 ? void 0 : _f.plugins) !== null && _g !== void 0 ? _g : []), true)
187
180
  })];
188
181
  }
189
182
  });
@@ -86,6 +86,8 @@ var fs_extra_1 = __importDefault(require("fs-extra"));
86
86
  var path_1 = __importDefault(require("path"));
87
87
  var chalk_1 = __importDefault(require("chalk"));
88
88
  var process = __importStar(require("process"));
89
+ var ora_1 = __importDefault(require("ora"));
90
+ var spinner = (0, ora_1.default)();
89
91
  var copyDirFiles = function (src, dest, filter) { return __awaiter(void 0, void 0, void 0, function () {
90
92
  var _copy, e_1;
91
93
  return __generator(this, function (_a) {
@@ -206,10 +208,10 @@ var getPort = function () {
206
208
  exports.getPort = getPort;
207
209
  exports.toast = {
208
210
  info: function (message) {
209
- console.log("> ".concat(chalk_1.default.hex('#5f72f5')(message), "\n"));
211
+ console.log("> ".concat(chalk_1.default.hex('#7888FCFF')(message), "\n"));
210
212
  },
211
213
  error: function (message) {
212
- console.log("\n> ".concat(chalk_1.default.hex('#5f72f5')('There are some errors about Swico:'), " \n"));
214
+ console.log("\n> ".concat(chalk_1.default.hex('#7888FCFF')('There are some errors about Swico:'), " \n"));
213
215
  if (Array.isArray(message)) {
214
216
  message.forEach(function (item) {
215
217
  console.log(" > ".concat(chalk_1.default.red.bold(item), " \n"));
@@ -220,7 +222,7 @@ exports.toast = {
220
222
  }
221
223
  },
222
224
  warning: function (message) {
223
- console.log("\n> ".concat(chalk_1.default.hex('#5f72f5')('There are some warnings about Swico:'), " \n"));
225
+ console.log("\n> ".concat(chalk_1.default.hex('#7888FCFF')('There are some warnings about Swico:'), " \n"));
224
226
  if (Array.isArray(message)) {
225
227
  message.forEach(function (item) {
226
228
  console.log(" > ".concat(chalk_1.default.hex('#fb8918').bold(item), " \n"));