-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.js
91 lines (87 loc) · 2.31 KB
/
config.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
suites: {
'dom': {
exec: 'dom',
$config: {
includejs: includeSettings(),
},
tests: 'test/dom/**.spec.ts'
},
'node': {
exec: 'node',
tests: 'test/node/**.spec.ts'
},
'examples': {
exec: 'dom',
$config: {
includejs: includeSettings(),
},
tests: 'test/examples/**.spec.ts'
},
'observer': {
exec: 'node',
tests: 'projects/observer/test/**.spec.ts'
},
'jmask': {
exec: 'node',
tests: 'projects/mask-j/test/**.spec.ts'
},
'compo': {
exec: 'dom',
$config: {
includejs: includeSettings(),
},
tests: 'projects/mask-compo/test/**.spec.ts'
},
'binding': {
exec: 'dom',
$config: {
includejs: includeSettings(),
},
tests: 'projects/mask-binding/test/**.spec.ts'
},
'expression': {
exec: 'node',
tests: 'projects/expression/test/**.spec.ts'
}
}
};
function includeSettings() {
return {
extentionDefault: { js: 'ts' },
amd: true,
routes: {
"@core": "/src/{0}",
"@utils": "/ref-utils/src/{0}",
"@mask-j": "/projects/mask-j/src/jmask/{0}",
"@compo": "/projects/mask-compo/src/{0}",
"@binding": "/projects/mask-binding/src/{0}",
"@project": "/projects/{0}"
},
"lazy": {
"/custom/*": [
"modules/exports",
"expression/src/exports"
],
"/builder/*": [
"src/util/compo",
"src/feature/"
],
"/renderer/*": [
"compo/exports"
],
"/mask-compo/*": [
"util/reporters",
"parser/exports",
"builder/exports",
"expression/src/exports",
"renderer/exports",
"parser/exports",
"/feature/"
],
"CompoStatics\\b": [
"Component"
]
}
};
}