forked from DevExpress/devextreme-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.config.js
93 lines (92 loc) · 3.22 KB
/
build.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
92
93
var bundleName = "devextreme-angular";
module.exports = {
tools: {
srcFilesPattern: ['tools/src/**/*.ts'],
distPath: 'tools/dist',
metadataGenerator: {
importFrom: './tools/dist/metadata-generator',
sourceMetadataFilePath: './metadata/NGMetaData.json',
deprecatedMetadataFilePath: './metadata/DeprecatedComponentsMetadata.json',
outputFolderPath: './metadata/generated',
nestedPathPart: 'nested',
basePathPart: 'base'
},
componentGenerator: {
importFrom: './tools/dist/dot-generator',
templateFilePath: './templates/component.tst',
nestedTemplateFilePath: './templates/nested-component.tst',
baseNestedTemplateFilePath: './templates/base-nested-component.tst',
metadataFolderPath: './metadata/generated/',
outputFolderPath: './src/ui/',
nestedPathPart: 'nested',
basePathPart: 'base'
},
facadeGenerator: {
importFrom: './tools/dist/facade-generator',
facades: {
'./src/index.ts': {
sourceDirectories: [
'./src/core',
'./src/ui'
]
}
}
},
moduleFacadeGenerator: {
importFrom: './tools/dist/module.facade-generator',
moduleFacades: {
'./src/ui/all.ts': {
sourceComponentDirectories: [
'./src/ui'
],
additionalImports: {
'DxTemplateModule': 'import { DxTemplateModule } from \'../core/template\''
}
}
}
},
componentNamesGenerator: {
importFrom: './tools/dist/component-names-generator',
componentFilesPath: './src/ui/',
excludedFileNames: [ 'all.ts', 'validation-group.ts', 'validation-summary.ts', 'validator.ts' ],
outputFileName: 'tests/src/server/component-names.ts'
},
tsConfigPath: "tools/src/tsconfig.json",
tests: {
srcFilesPattern: 'tools/spec/tests/*.spec.js'
}
},
components: {
srcFilesPattern: '**/*.ts',
tsTestSrc: ['tests/src/**/*.spec.ts', 'tests/src/**/component-names.ts'],
testsPath: 'tests/dist',
sourcePath: 'src',
outputPath: 'dist',
bundleName: bundleName
},
examples: {
srcFilesPattern: ['examples/**/*.ts', '!examples/**/*.d.ts'],
path: 'examples',
appPath: 'examples/app',
tsc: {
"target": "ES5",
"module": "system",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"removeComments": true,
"declaration": true,
"lib": ["es2015", "dom"]
}
},
tests: {
tsConfigPath: "tests/src/tsconfig.json"
},
npm: {
distPath: "npm/dist",
sourcesTargetFolder: "ts",
content: [ "LICENSE", "README.md" ],
package: [ "package.json", "npm/package.json" ]
}
};