swico 0.6.0-beta16 → 0.6.0-beta17

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.6.0-beta16",
3
+ "version": "0.6.0-beta17",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -60,6 +60,7 @@ function default_1() {
60
60
  case 1:
61
61
  projectConfig = _a.sent();
62
62
  entryPath = projectConfig.entryPath, templatePath = projectConfig.templatePath, projectPath = projectConfig.projectPath, customConfig = projectConfig.customConfig, templateType = projectConfig.templateType;
63
+ (0, tools_1.initIndexFile)(templateType);
63
64
  return [4, (0, webpack_prod_1.default)({
64
65
  entryPath: entryPath,
65
66
  templatePath: templatePath,
@@ -133,7 +133,6 @@ function start() {
133
133
  process.env.SWICO_ENV = 'dev';
134
134
  tools_1.toast.info("Swico v".concat(package_json_1.default.version));
135
135
  spinner.start('Initializing Swico development config...\n');
136
- console.log('11');
137
136
  if (!(envPort !== null && envPort !== void 0)) return [3, 1];
138
137
  _a = envPort;
139
138
  return [3, 3];
@@ -146,10 +145,8 @@ function start() {
146
145
  return [4, (0, config_1.getProjectConfig)('dev')];
147
146
  case 4:
148
147
  projectConfig = _b.sent();
149
- console.log('22');
150
148
  projectPath = projectConfig.projectPath, templateType = projectConfig.templateType;
151
- console.log('33');
152
- (0, tools_1.initHookRef)(templateType);
149
+ (0, tools_1.initIndexFile)(templateType);
153
150
  return [4, (0, webpack_dev_1.default)(projectConfig)];
154
151
  case 5:
155
152
  startConfig = _b.sent();
@@ -6,4 +6,4 @@ export declare const toast: {
6
6
  warning: (message: string | string[]) => void;
7
7
  };
8
8
  export declare const writeFile: (sourcePath: any, text: any) => Promise<unknown>;
9
- export declare const initHookRef: (tempalteType: any) => Promise<void>;
9
+ export declare const initIndexFile: (tempalteType: any) => Promise<void>;
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
39
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
40
  };
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.initHookRef = exports.writeFile = exports.toast = exports.getPort = exports.copyDirFiles = void 0;
42
+ exports.initIndexFile = exports.writeFile = exports.toast = exports.getPort = exports.copyDirFiles = void 0;
43
43
  var portfinder_1 = __importDefault(require("portfinder"));
44
44
  var fs_extra_1 = __importDefault(require("fs-extra"));
45
45
  var path_1 = __importDefault(require("path"));
@@ -142,7 +142,7 @@ var writeFile = function (sourcePath, text) {
142
142
  });
143
143
  };
144
144
  exports.writeFile = writeFile;
145
- var initHookRef = function (tempalteType) { return __awaiter(void 0, void 0, void 0, function () {
145
+ var initIndexFile = function (tempalteType) { return __awaiter(void 0, void 0, void 0, function () {
146
146
  var fileText, targetPath;
147
147
  return __generator(this, function (_a) {
148
148
  switch (_a.label) {
@@ -158,4 +158,4 @@ var initHookRef = function (tempalteType) { return __awaiter(void 0, void 0, voi
158
158
  }
159
159
  });
160
160
  }); };
161
- exports.initHookRef = initHookRef;
161
+ exports.initIndexFile = initIndexFile;