swico 0.6.0-beta13 → 0.6.0-beta14
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/command/build.js +1 -1
- package/src/command/start.js +1 -1
- package/src/utils/config.js +2 -0
- package/src/utils/tools.js +1 -0
package/package.json
CHANGED
package/src/command/build.js
CHANGED
|
@@ -55,7 +55,7 @@ function default_1() {
|
|
|
55
55
|
case 0:
|
|
56
56
|
process.env.SWICO_ENV = 'prod';
|
|
57
57
|
tools_1.toast.info("Swico v".concat(package_json_1.default.version));
|
|
58
|
-
spinner.start('Initializing Swico production config
|
|
58
|
+
spinner.start('Initializing Swico production config...\n');
|
|
59
59
|
return [4, (0, config_1.getProjectConfig)('prod')];
|
|
60
60
|
case 1:
|
|
61
61
|
projectConfig = _a.sent();
|
package/src/command/start.js
CHANGED
|
@@ -132,7 +132,7 @@ function start() {
|
|
|
132
132
|
case 0:
|
|
133
133
|
process.env.SWICO_ENV = 'dev';
|
|
134
134
|
tools_1.toast.info("Swico v".concat(package_json_1.default.version));
|
|
135
|
-
spinner.start('Initializing Swico development config
|
|
135
|
+
spinner.start('Initializing Swico development config...\n');
|
|
136
136
|
if (!(envPort !== null && envPort !== void 0)) return [3, 1];
|
|
137
137
|
_a = envPort;
|
|
138
138
|
return [3, 3];
|
package/src/utils/config.js
CHANGED
|
@@ -309,9 +309,11 @@ var initTemplateConfig = function (routerConfig, templateType, env) {
|
|
|
309
309
|
case 0:
|
|
310
310
|
copyTargetPath = path_1.default.resolve(projectPath, './src/.swico');
|
|
311
311
|
copyFileNameList = getCopyFileNameList(templateType, env);
|
|
312
|
+
console.log('1');
|
|
312
313
|
return [4, (0, tools_1.copyDirFiles)(path_1.default.resolve(__dirname, "../template/".concat(templateType)), copyTargetPath, function (fileName) { return copyFileNameList.includes(fileName); })];
|
|
313
314
|
case 1:
|
|
314
315
|
_a.sent();
|
|
316
|
+
console.log('2');
|
|
315
317
|
return [4, formatRouterConfig(routerConfig, templateType, env)];
|
|
316
318
|
case 2:
|
|
317
319
|
_a.sent();
|
package/src/utils/tools.js
CHANGED
|
@@ -59,6 +59,7 @@ var copyDirFiles = function (src, dest, filter) { return __awaiter(void 0, void
|
|
|
59
59
|
files.forEach(function (file) {
|
|
60
60
|
var srcPath = path_1.default.join(src, file);
|
|
61
61
|
var destPath = path_1.default.join(dest, file);
|
|
62
|
+
console.log('1.5', srcPath, destPath);
|
|
62
63
|
var srcStat = fs_extra_1.default.statSync(srcPath);
|
|
63
64
|
if (srcStat.isDirectory()) {
|
|
64
65
|
_copy(srcPath, destPath);
|