swico 1.3.0-beta-12 → 1.3.0-beta.10

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": "1.3.0-beta-12",
3
+ "version": "1.3.0-beta.10",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -119,7 +119,9 @@ var handleWatch = function (projectPath, devServer, env) {
119
119
  case filePath === loadingFilePath: return [3, 7];
120
120
  }
121
121
  return [3, 9];
122
- case 2: return [4, devServer.stop()];
122
+ case 2:
123
+ console.log('1');
124
+ return [4, devServer.stop()];
123
125
  case 3:
124
126
  _b.sent();
125
127
  return [4, tsTypingsWatcher.close()];
@@ -128,12 +130,14 @@ var handleWatch = function (projectPath, devServer, env) {
128
130
  restartServer();
129
131
  return [3, 9];
130
132
  case 5:
133
+ console.log('2');
131
134
  replaceIndexText = (0, config_1.handleGlobalStyleFile)(replaceIndexText);
132
135
  return [4, (0, config_1.updateIndexFileText)(envPath, replaceIndexText)];
133
136
  case 6:
134
137
  _b.sent();
135
138
  return [3, 9];
136
139
  case 7:
140
+ console.log('3');
137
141
  replaceIndexText = (0, config_1.handleLoadingFile)(replaceIndexText, envPath);
138
142
  return [4, (0, config_1.updateIndexFileText)(envPath, replaceIndexText)];
139
143
  case 8:
@@ -178,7 +182,6 @@ var createCompileListener = function (compiler) {
178
182
  compiler.hooks.done.tap('done', function (stats) {
179
183
  var info = stats === null || stats === void 0 ? void 0 : stats.toJson();
180
184
  if (stats === null || stats === void 0 ? void 0 : stats.hasErrors()) {
181
- console.log('1', info === null || info === void 0 ? void 0 : info.errors);
182
185
  tools_1.toast.error(info === null || info === void 0 ? void 0 : info.errors.map(function (item) { return item.message || item.stack; }).filter(function (item1) { return !filterStyleFileList.find(function (item2) { return item1.includes(item2); }); }));
183
186
  return;
184
187
  }
@@ -199,7 +202,7 @@ var createCompileListener = function (compiler) {
199
202
  function start() {
200
203
  var _a, _b, _c, _d, _e, _f;
201
204
  return __awaiter(this, void 0, void 0, function () {
202
- var availablePort, _g, projectConfig, projectPath, customConfig, env, newRouterBase, startConfig, compiler, oriLogger, devServer, e_1, strErr_1;
205
+ var availablePort, _g, projectConfig, projectPath, customConfig, env, newRouterBase, startConfig, compiler, oriLogger, devServer, e_1, strErr;
203
206
  return __generator(this, function (_h) {
204
207
  switch (_h.label) {
205
208
  case 0:
@@ -251,11 +254,8 @@ function start() {
251
254
  return [3, 10];
252
255
  case 9:
253
256
  e_1 = _h.sent();
254
- strErr_1 = e_1.toString();
255
- console.log('2', strErr_1);
256
- if (!filterStyleFileList.find(function (item) { return strErr_1.includes(item); })) {
257
- tools_1.toast.error(strErr_1);
258
- }
257
+ strErr = e_1.toString();
258
+ tools_1.toast.error(strErr);
259
259
  return [3, 10];
260
260
  case 10: return [2];
261
261
  }