swico 0.9.2-beta6 → 0.9.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
package/src/command/start.js
CHANGED
|
@@ -79,7 +79,9 @@ var handleWatch = function (projectPath, devServer) {
|
|
|
79
79
|
return __generator(this, function (_a) {
|
|
80
80
|
switch (_a.label) {
|
|
81
81
|
case 0:
|
|
82
|
-
tools_1.toast.warning('Swico configuration files
|
|
82
|
+
tools_1.toast.warning('Swico configuration files changed, restarting server...', {
|
|
83
|
+
inline: true
|
|
84
|
+
});
|
|
83
85
|
return [4, devServer.stop()];
|
|
84
86
|
case 1:
|
|
85
87
|
_a.sent();
|
|
@@ -84,7 +84,6 @@ var getPathNameList = function (routes) {
|
|
|
84
84
|
};
|
|
85
85
|
exports.pathNameList = getPathNameList(routes_1.default);
|
|
86
86
|
var getLocation = function (historyLocation) {
|
|
87
|
-
console.log('historyLocation', historyLocation);
|
|
88
87
|
var pathname = historyLocation.pathname, hash = historyLocation.hash, search = historyLocation.search, state = historyLocation.state;
|
|
89
88
|
var routerBaseLength = formatRouterBase.length;
|
|
90
89
|
var path = pathname.slice(routerBaseLength);
|
package/src/utils/tools.js
CHANGED
|
@@ -213,11 +213,11 @@ exports.colorConfig = {
|
|
|
213
213
|
exports.toast = {
|
|
214
214
|
info: function (message, options) {
|
|
215
215
|
var _a = (options || {}).wrap, wrap = _a === void 0 ? false : _a;
|
|
216
|
-
console.log("".concat(chalk_1.default.hex(exports.colorConfig.theme).bold('
|
|
216
|
+
console.log("".concat(chalk_1.default.hex(exports.colorConfig.theme).bold('info'), " - ").concat(message).concat(wrap ? '\n' : ''));
|
|
217
217
|
},
|
|
218
218
|
success: function (message, options) {
|
|
219
219
|
var _a = (options || {}).wrap, wrap = _a === void 0 ? true : _a;
|
|
220
|
-
console.log("".concat(chalk_1.default.hex(exports.colorConfig.success).bold('
|
|
220
|
+
console.log("".concat(chalk_1.default.hex(exports.colorConfig.success).bold('info'), " - ").concat(message).concat(wrap ? '\n' : ''));
|
|
221
221
|
},
|
|
222
222
|
error: function (message, options) {
|
|
223
223
|
var _a = options || {}, inline = _a.inline, title = _a.title;
|