-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-api.js
More file actions
39 lines (35 loc) · 1.02 KB
/
update-api.js
File metadata and controls
39 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const fs = require('fs');
fs.writeFileSync(
'./apps/front/src/6-shared/api/generated/services/index.ts',
`
export { AppService } from './app.service';
export { AuthService } from './auth.service';
export { SettingsService } from './settings.service';
export { WordService } from './word.service';
export { VocabularyService } from './vocabulary.service';
export { UsageService } from './usage.service';
export { ImageService } from './image.service';
export { CategoryService } from './category.service';
export { ProfileService } from './profile.service';
`,
function (err) {
if (err) {
return console.log(err);
}
console.log('The file was saved!');
},
);
fs.writeFileSync(
'./apps/front/src/6-shared/api/generated/index.ts',
`
export * from './services';
export { ApiConfiguration } from './api-configuration';
export * from './models';
`,
function (err) {
if (err) {
return console.log(err);
}
console.log('The file was saved!');
},
);