swico 0.6.0-beta13 → 0.6.0-beta15
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 +4 -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
|
@@ -307,11 +307,15 @@ var initTemplateConfig = function (routerConfig, templateType, env) {
|
|
|
307
307
|
return __generator(this, function (_a) {
|
|
308
308
|
switch (_a.label) {
|
|
309
309
|
case 0:
|
|
310
|
+
console.log('0');
|
|
310
311
|
copyTargetPath = path_1.default.resolve(projectPath, './src/.swico');
|
|
312
|
+
console.log('0.5');
|
|
311
313
|
copyFileNameList = getCopyFileNameList(templateType, env);
|
|
314
|
+
console.log('1');
|
|
312
315
|
return [4, (0, tools_1.copyDirFiles)(path_1.default.resolve(__dirname, "../template/".concat(templateType)), copyTargetPath, function (fileName) { return copyFileNameList.includes(fileName); })];
|
|
313
316
|
case 1:
|
|
314
317
|
_a.sent();
|
|
318
|
+
console.log('2');
|
|
315
319
|
return [4, formatRouterConfig(routerConfig, templateType, env)];
|
|
316
320
|
case 2:
|
|
317
321
|
_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);
|