This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
spoonx.js
79 lines (67 loc) · 2.06 KB
/
spoonx.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
/************************************************/
/* spoonx-tools configuration */
/* @see https://github.com/SpoonX/spoonx-tools */
/************************************************/
var appRoot = 'src/';
module.exports = {
path: {
root: appRoot,
/* options and their defaults */
/* js files to ignore
*
* ignore: [],
*/
/* future use: use TypeScript or Babel for transpiling
*
* useTypeScriptForDTS: false,
*/
/* Imports to append to the import block of the main file.
* Add here eg. non-concated local imports in the main file as they will
* get removed during the build process (ValueConverters, CustomElements).
*
* importsToAdd: ["import {AssociationSelect} from './association-select';"],
*/
importsToAdd: [
"import {Datatable} from './datatable';",
"import {ColumnsFilterValueConverter} from './columns-filter';",
"import {ConvertManagerValueConverter} from './convert-manager';"
],
/* js to be transpiled, but not be concated
* (ValueConverters, CustomElements)
*
* jsResources: [appRoot + 'association-select.js'],
*/
jsResources: [
appRoot + 'datatable.js',
appRoot + 'columns-filter.js',
appRoot + 'convert-manager.js'
],
/* other resources that need to get copied keeping their path
* resources: appRoot + '{** / *.css,** / *.html}',
*/
resources: appRoot + '{**/*.css,**/*.html}',
/* imports that are only used internally, eg 'extend'. no need to d.ts export them
*
* importsToIgnoreForDts: ['extend'],
*/
importsToIgnoreForDts: ['typer'],
/* sort when concating
* sort: true,
*/
sort: true,
/* concat js files
* concat: true,
*/
concat: true,
/* default options overwrites for karma
* karma: {browsers: ['Chrome']}
*/
karma: {
jspm: {
// Edit this to your needs
loadFiles: ['test/setup.js', 'test/**/*.spec.js'],
serveFiles: ['src/**/*', 'test/resources/**/*']
}
}
}
};