swico 1.1.0-beta.2 → 1.1.0-beta.3

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.1.0-beta.2",
3
+ "version": "1.1.0-beta.3",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -90,7 +90,13 @@ var handleWatch = function (projectPath, devServer) {
90
90
  });
91
91
  }); });
92
92
  var tsTypingsWatcher = chokidar_1.default
93
- .watch([path_1.default.join(projectPath, '/src/**/*.d.ts')], {
93
+ .watch([
94
+ path_1.default.join(projectPath, '/src/**/*.d.ts'),
95
+ path_1.default.join(projectPath, '/src/loading/index.tsx'),
96
+ path_1.default.join(projectPath, '/src/global.css'),
97
+ path_1.default.join(projectPath, '/src/global.less'),
98
+ path_1.default.join(projectPath, '/src/global.scss')
99
+ ], {
94
100
  interval: 500,
95
101
  binaryInterval: 500,
96
102
  ignoreInitial: true
@@ -112,31 +118,6 @@ var handleWatch = function (projectPath, devServer) {
112
118
  }
113
119
  });
114
120
  }); });
115
- var otherWatcher = chokidar_1.default
116
- .watch([
117
- path_1.default.join(projectPath, '/src/loading/index.tsx'),
118
- path_1.default.join(projectPath, '/src/global.css'),
119
- path_1.default.join(projectPath, '/src/global.less'),
120
- path_1.default.join(projectPath, '/src/global.scss')
121
- ], {
122
- interval: 500,
123
- binaryInterval: 500,
124
- ignoreInitial: true
125
- })
126
- .on('add', function (eventName, path) { return __awaiter(void 0, void 0, void 0, function () {
127
- return __generator(this, function (_a) {
128
- switch (_a.label) {
129
- case 0: return [4, devServer.stop()];
130
- case 1:
131
- _a.sent();
132
- return [4, otherWatcher.close()];
133
- case 2:
134
- _a.sent();
135
- restartServer();
136
- return [2];
137
- }
138
- });
139
- }); });
140
121
  };
141
122
  var availablePort;
142
123
  var routerBase = '/';
@@ -187,6 +168,7 @@ function start() {
187
168
  return __generator(this, function (_h) {
188
169
  switch (_h.label) {
189
170
  case 0:
171
+ console.log('routerBase', routerBase, availablePort);
190
172
  process.env.SWICO_ENV = 'dev';
191
173
  if (RESTART !== 'true') {
192
174
  tools_1.toast.info("Swico v".concat(package_json_1.default.version));