1 | "use strict";
|
2 |
|
3 | var _requireText = _interopRequireDefault(require("require-text"));
|
4 |
|
5 | var _fs = _interopRequireDefault(require("fs"));
|
6 |
|
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8 |
|
9 | const mainTs = (0, _requireText.default)('../defaults/main.ts', require);
|
10 | const hmrTs = (0, _requireText.default)('../defaults/hmr.ts', require);
|
11 | const indexHtml = (0, _requireText.default)('../defaults/index.html', require);
|
12 | const appModuleTs = (0, _requireText.default)('../defaults/app/app.module.ts', require);
|
13 | const appNavTs = (0, _requireText.default)('../defaults/app/app.nav.ts', require);
|
14 | const appRoutingTs = (0, _requireText.default)('../defaults/app/app.routing.module.ts', require);
|
15 | const appComponentTs = (0, _requireText.default)('../defaults/app/app.component.ts', require);
|
16 | const appComponentHtml = (0, _requireText.default)('../defaults/app/app.component.html', require);
|
17 | const mainModuleTs = (0, _requireText.default)('../defaults/app/main-module.module.ts', require);
|
18 | const mainModuleRoutingTs = (0, _requireText.default)('../defaults/app/main-module-routing.module.ts', require);
|
19 |
|
20 | module.exports = () => {
|
21 | _fs.default.writeFileSync('src/main.ts', mainTs);
|
22 |
|
23 | _fs.default.writeFileSync('src/hmr.ts', hmrTs);
|
24 |
|
25 | _fs.default.writeFileSync('src/index.html', indexHtml);
|
26 |
|
27 | _fs.default.writeFileSync('src/app/main-module/main-module-routing.module.ts', mainModuleRoutingTs);
|
28 |
|
29 | _fs.default.writeFileSync('src/app/main-module/main-module.module.ts', mainModuleTs);
|
30 |
|
31 | _fs.default.writeFileSync('src/app/app.module.ts', appModuleTs);
|
32 |
|
33 | _fs.default.writeFileSync('src/app/app-routing.module.ts', appRoutingTs);
|
34 |
|
35 | _fs.default.writeFileSync('src/app/app.nav.ts', appNavTs);
|
36 |
|
37 | _fs.default.writeFileSync('src/app/app.component.ts', appComponentTs);
|
38 |
|
39 | _fs.default.writeFileSync('src/app/app.component.html', appComponentHtml);
|
40 | }; |
\ | No newline at end of file |