swico 0.8.3-beta10 → 0.8.3-beta2

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.3-beta10",
3
+ "version": "0.8.3-beta2",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -143,15 +143,7 @@ var createCompileListener = function (compiler) {
143
143
  return;
144
144
  }
145
145
  if (stats === null || stats === void 0 ? void 0 : stats.hasWarnings()) {
146
- var warnings = info.warnings;
147
- warnings.some(function (item) {
148
- var msg = item.message || item.stack;
149
- if (msg.startsWith('[eslint]')) {
150
- tools_1.toast.warning(msg, 'ESLint Error');
151
- return;
152
- }
153
- });
154
- return;
146
+ tools_1.toast.warning(info === null || info === void 0 ? void 0 : info.warnings.map(function (item) { return item.message || item.stack; }));
155
147
  }
156
148
  tools_1.toast.info("Compiled complete in ".concat(info === null || info === void 0 ? void 0 : info.time, "ms"));
157
149
  });
@@ -264,7 +264,7 @@ function default_1(_a) {
264
264
  logger: {
265
265
  log: function () { },
266
266
  error: function (message) {
267
- tools_1.toast.error(message, 'TypeScript Error');
267
+ tools_1.toast.error(message);
268
268
  }
269
269
  },
270
270
  typescript: {
@@ -66,7 +66,6 @@ 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
68
  var vue_loader_1 = require("vue-loader");
69
- var tools_1 = require("../utils/tools");
70
69
  function default_1(_a) {
71
70
  var _b, _c, _d;
72
71
  var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
@@ -278,12 +277,6 @@ function default_1(_a) {
278
277
  hash: true
279
278
  }),
280
279
  new fork_ts_checker_webpack_plugin_1.default({
281
- logger: {
282
- log: function () { },
283
- error: function (message) {
284
- tools_1.toast.error(message, 'TypeScript Error');
285
- }
286
- },
287
280
  typescript: {
288
281
  diagnosticOptions: {
289
282
  semantic: true,
@@ -215,26 +215,26 @@ exports.toast = {
215
215
  console.log("".concat(chalk_1.default.hex('#32f264').bold('swico'), " - ").concat(message).concat(wrap ? '\n' : ''));
216
216
  },
217
217
  error: function (message, title) {
218
- console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
218
+ console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A \n"));
219
219
  if (Array.isArray(message)) {
220
220
  message.forEach(function (item) {
221
- console.log("> ".concat(chalk_1.default.red.bold(item)));
221
+ console.log(" > ".concat(chalk_1.default.red.bold(item)));
222
222
  });
223
223
  }
224
224
  else if (message) {
225
- console.log("> ".concat(chalk_1.default.red.bold(message)));
225
+ console.log(" > ".concat(chalk_1.default.red.bold(message)));
226
226
  }
227
227
  console.log('\n');
228
228
  },
229
229
  warning: function (message, title) {
230
- console.log("".concat(chalk_1.default.hex('#fb8918').bold('warning'), " - ").concat(title || 'There are some warnings about Swico', "\uFF1A"));
230
+ console.log("".concat(chalk_1.default.hex('#fb8918').bold('warning'), " - ").concat(title || 'There are some warnings about Swico', "\uFF1A \n"));
231
231
  if (Array.isArray(message)) {
232
232
  message.forEach(function (item) {
233
- console.log("> ".concat(chalk_1.default.hex('#fb8918').bold(item)));
233
+ console.log(" > ".concat(chalk_1.default.hex('#fb8918').bold(item)));
234
234
  });
235
235
  }
236
236
  else if (message) {
237
- console.log("> ".concat(chalk_1.default.hex('#fb8918').bold(message)));
237
+ console.log(" > ".concat(chalk_1.default.hex('#fb8918').bold(message)));
238
238
  }
239
239
  console.log('\n');
240
240
  }