-
Notifications
You must be signed in to change notification settings - Fork 0
/
tshelper.js
26 lines (22 loc) · 1.06 KB
/
tshelper.js
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
const { serviceBuilder, objectBuilder } = require('./lib/tshelper');
const subServices = serviceBuilder({root: __dirname});
const subObjects = objectBuilder({root: __dirname});
module.exports = {
watchDirs: {
// "object": {
// directory: 'app/object', // files directory.
// pattern: '**/*.(ts|js)', // glob pattern, default is **/*.(ts|js). it doesn't need to configure normally.
// // ignore: '', // ignore glob pattern, default to empty.
// generator: 'function', // generator name, eg: class、auto、function、object
// interface: 'IGaiaObject', // interface name
// // declareTo: 'Context.object', // declare to this interface
// // watch: true, // whether need to watch files
// caseStyle: 'upper', // caseStyle for loader
// // interfaceHandle: val => `ReturnType<typeof ${val}>`, // interfaceHandle
// // trigger: ['add', 'unlink'], // recreate d.ts when receive these events, all events: ['add', 'unlink', 'change']
// },
...subObjects,
...subServices
}
}
// console.dir(module.exports);