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 60
/
spoonx.js
68 lines (56 loc) · 1.86 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
/************************************************/
/* 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 {AuthFilterValueConverter} from "./authFilterValueConverter"',
'import {AuthenticatedValueConverter} from "./authenticatedValueConverter"',
'import {AuthenticatedFilterValueConverter} from "./authenticatedFilterValueConverter"'
],
/* js to be transpiled, but not be concated
* (ValueConverters, CustomElements)
*
* jsResources: [appRoot + 'association-select.js'],
*/
jsResources: [appRoot + '*ValueConverter.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: ['extend', 'jwt-decode'],
/* sort when concating
* sort: true,
*/
sort: true,
/* concat js files
* concat: true,
*/
concat: true,
/* default options overwrites for karma
* karma: {browsers: ['Chrome']}
*/
}
};