-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
55 lines (49 loc) · 1.32 KB
/
Gruntfile.coffee
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
###
This Gruntfile is used to build/test/bump this package
No usage in package which use it
###
module.exports = (grunt) ->
# Initialize some global package
require('load-grunt-tasks')(grunt)
require('time-grunt')(grunt)
grunt.initConfig
bump:
options:
autoWatch: true
browsers: ['PhantomJS']
files: ['test/unit/**/*.spec.ts']
frameworks: ['jasmine']
plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-typescript-preprocessor'
]
preprocessors:
'test/unit/**/*.spec.ts': ['typescript']
typescriptPreprocessor:
options:
target: 'es3'
continuous:
options:
singleRun: false
unit:
options:
singleRun: true
shell:
test:
command: [
'npm link'
'cd sample/angularjs-app'
'npm link charettejs'
'npm i'
].join('&& ')
testSample:
command: [
'cd sample/angularjs-app'
'grunt karma:unit'
].join('&& ')
installbowerdep:
command: 'bower i && bower-installer -r -p'
grunt.registerTask 'bower', ['shell:installbowerdep']
grunt.registerTask 'test', ['shell:test']
grunt.registerTask 'test:unit', ['shell:test', 'shell:testSample']