swico 0.8.1 → 0.8.2-beta1

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",
3
+ "version": "0.8.2-beta1",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -164,6 +164,16 @@ function start() {
164
164
  oriLogger = compiler.getInfrastructureLogger;
165
165
  compiler.getInfrastructureLogger = getMockGetLogger(compiler);
166
166
  devServer = new webpack_dev_server_1.default(__assign(__assign({}, startConfig.devServer), { port: availablePort }), compiler);
167
+ compiler.hooks.beforeCompile.tap('xxx', function () {
168
+ tools_1.toast.info('Compiling...');
169
+ });
170
+ compiler.hooks.done.tap('yyy', function (stats) {
171
+ var info = stats.toJson();
172
+ if (stats.hasErrors() || stats.hasWarnings()) {
173
+ return;
174
+ }
175
+ tools_1.toast.info("Compiled successfully in ".concat(info.time, "ms"));
176
+ });
167
177
  compiler.watch({}, function (err, stats) {
168
178
  var info = stats.toJson();
169
179
  if (err || stats.hasErrors() || stats.hasWarnings()) {