1 | "use strict";
|
2 |
|
3 | var _lodash = _interopRequireDefault(require("lodash"));
|
4 |
|
5 | var _requireText = _interopRequireDefault(require("require-text"));
|
6 |
|
7 | var _fs = _interopRequireDefault(require("fs"));
|
8 |
|
9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10 |
|
11 | module.exports = () => {
|
12 | const environmentSources = {
|
13 | 'config.cert.ts': (0, _requireText.default)('../defaults/environments/config.cert.ts', require),
|
14 | 'config.dev.ts': (0, _requireText.default)('../defaults/environments/config.dev.ts', require),
|
15 | 'config.e2e.ts': (0, _requireText.default)('../defaults/environments/config.e2e.ts', require),
|
16 | 'config.local.ts': (0, _requireText.default)('../defaults/environments/config.local.ts', require),
|
17 | 'config.mocks.ts': (0, _requireText.default)('../defaults/environments/config.mocks.ts', require),
|
18 | 'config.prod.ts': (0, _requireText.default)('../defaults/environments/config.prod.ts', require),
|
19 | 'config.stage.ts': (0, _requireText.default)('../defaults/environments/config.stage.ts', require),
|
20 | 'environment.cert.ts': (0, _requireText.default)('../defaults/environments/environment.cert.ts', require),
|
21 | 'environment.dev.ts': (0, _requireText.default)('../defaults/environments/environment.dev.ts', require),
|
22 | 'environment.e2e.ts': (0, _requireText.default)('../defaults/environments/environment.e2e.ts', require),
|
23 | 'environment.prod.ts': (0, _requireText.default)('../defaults/environments/environment.prod.ts', require),
|
24 | 'environment.ts': (0, _requireText.default)('../defaults/environments/environment.ts', require)
|
25 | };
|
26 |
|
27 | _lodash.default.forEach(environmentSources, (content, name) => {
|
28 | _fs.default.writeFileSync(`src/environments/${name}`, content);
|
29 | });
|
30 | }; |
\ | No newline at end of file |