UNPKG

1.87 kBJavaScriptView Raw
1"use strict";
2
3var _requireText = _interopRequireDefault(require("require-text"));
4
5var _fs = _interopRequireDefault(require("fs"));
6
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
9const mainTs = (0, _requireText.default)('../defaults/main.ts', require);
10const hmrTs = (0, _requireText.default)('../defaults/hmr.ts', require);
11const indexHtml = (0, _requireText.default)('../defaults/index.html', require);
12const appModuleTs = (0, _requireText.default)('../defaults/app/app.module.ts', require);
13const appNavTs = (0, _requireText.default)('../defaults/app/app.nav.ts', require);
14const appRoutingTs = (0, _requireText.default)('../defaults/app/app.routing.module.ts', require);
15const appComponentTs = (0, _requireText.default)('../defaults/app/app.component.ts', require);
16const appComponentHtml = (0, _requireText.default)('../defaults/app/app.component.html', require);
17const mainModuleTs = (0, _requireText.default)('../defaults/app/main-module.module.ts', require);
18const mainModuleRoutingTs = (0, _requireText.default)('../defaults/app/main-module-routing.module.ts', require);
19
20module.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