-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvars.js
More file actions
44 lines (44 loc) · 1.2 KB
/
vars.js
File metadata and controls
44 lines (44 loc) · 1.2 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
40
41
42
43
44
const path = require('path')
module.exports = {
vueLifeCycle: ['beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'beforeDestroy', 'destroyed', 'errorCaptured', 'beforeRouteEnter', 'beforeRouteUpdate', 'beforeRouteLeave'],
ts2jsTypeMap: {
String: 'string',
Number: 'number',
Boolean: 'boolean',
Array: 'Array<any>',
Object: 'any',
Date: 'any',
Function: 'Function',
Symbol: 'symbol',
Undefined: 'undefined'
},
ts2bableTypeMap: {
StringLiteral: 'string',
NumericLiteral: 'number',
BooleanLiteral: 'boolean',
ArrayExpression: 'Array<any>',
FunctionExpression: 'Function',
},
bableType2jsTypeMap: {
StringLiteral: 'String',
NumericLiteral: 'Number',
BooleanLiteral: 'Boolean',
ArrayExpression: 'Array',
FunctionExpression: 'Function',
},
babelPlugins: [
'typescript',
'asyncGenerators',
'classProperties',
['decorators', { decoratorsBeforeExport: true }],
'doExpressions',
'dynamicImport',
'exportDefaultFrom',
'exportNamespaceFrom',
'objectRestSpread',
'optionalCatchBinding',
'throwExpressions'
],
rootPath: '',
errorMsgTxtPath: ''
}