-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.js
55 lines (55 loc) · 1.16 KB
/
build.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
var jshintOptions = {
'predef': [ 'define' ]
, 'boss': true
, 'bitwise': true
, 'shadow': true
, 'trailing': true
, 'immed': true
, 'latedef': true
, 'forin': true
, 'curly': false
, 'debug': true
, 'devel': false
, 'evil': false
, 'regexp': false
, 'undef': true
, 'sub': true
, 'white': false
, 'indent': 2
, 'whitespace': true
, 'asi': true
, 'laxbreak': true
, 'eqeqeq': true
, 'eqnull': true
, 'browser': true
, 'node': true
, 'laxcomma': true
}
require('smoosh')
.config({
'JAVASCRIPT': {
'DIST_DIR': './'
, 'arbiter': [
'./src/copyright.js'
, './src/arbiter.js'
]
}
, 'JSHINT_OPTS': jshintOptions
}).run().build().analyze()
.config({
'JAVASCRIPT': {
'DIST_DIR': './'
, 'ender': [ './src/ender.js' ]
, 'tests': [
/*
'./test/buster.js'
, './test/common.js'
, './test/core-test.js'
, './test/engines-test.js'
, './test/noconflict.js'
, './test/setup.js'
*/
]
}
, 'JSHINT_OPTS': jshintOptions
}).run()