swico 0.6.0-beta8 → 0.6.0-beta9
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 +1 -1
- package/src/utils/config.js +2 -2
- package/src/utils/tools.js +1 -1
package/package.json
CHANGED
package/src/utils/config.js
CHANGED
|
@@ -178,7 +178,7 @@ var getProjectConfig = function (env) { return __awaiter(void 0, void 0, void 0,
|
|
|
178
178
|
return [4, initCliIndexFile(templateType)];
|
|
179
179
|
case 6:
|
|
180
180
|
_e.sent();
|
|
181
|
-
entryPath = path_1.default.resolve(projectPath,
|
|
181
|
+
entryPath = path_1.default.resolve(projectPath, './src/.swico/index.js');
|
|
182
182
|
templatePath = path_1.default.join(projectPath, '/src/index.ejs');
|
|
183
183
|
return [2, {
|
|
184
184
|
projectPath: projectPath,
|
|
@@ -248,7 +248,7 @@ var initCliIndexFile = function (templateType) { return __awaiter(void 0, void 0
|
|
|
248
248
|
}); };
|
|
249
249
|
var formatRouterConfig = function (_a, templateType, env) {
|
|
250
250
|
var _b = _a.routes, routes = _b === void 0 ? [] : _b, _c = _a.type, type = _c === void 0 ? 'browser' : _c, _d = _a.base, base = _d === void 0 ? '/' : _d;
|
|
251
|
-
var envPathSuffix = env === 'dev' ? '' : '
|
|
251
|
+
var envPathSuffix = env === 'dev' ? '' : 'prod.';
|
|
252
252
|
return new Promise(function (resolve, reject) { return __awaiter(void 0, void 0, void 0, function () {
|
|
253
253
|
var formatRouter, textData, modifiedText, configFilePath, replaceConfigText;
|
|
254
254
|
return __generator(this, function (_a) {
|
package/src/utils/tools.js
CHANGED
|
@@ -102,7 +102,7 @@ var getPort = function () {
|
|
|
102
102
|
exports.getPort = getPort;
|
|
103
103
|
exports.toast = {
|
|
104
104
|
info: function (message) {
|
|
105
|
-
console.log("\n".concat(chalk_1.default.hex('#5f72f5')(
|
|
105
|
+
console.log("\n> ".concat(chalk_1.default.hex('#5f72f5')(message), "\n"));
|
|
106
106
|
},
|
|
107
107
|
error: function (message) {
|
|
108
108
|
console.log("\n> ".concat(chalk_1.default.hex('#5f72f5')('There are some errors about Swico:'), " \n"));
|