forked from leonidas/transparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
56 lines (46 loc) · 1.76 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
module.exports = (grunt) ->
grunt.initConfig
coffee:
compile:
files: [
expand: true
cwd: 'spec'
src: '**/*.coffee'
dest: 'spec'
ext: '.js'
]
jasmine:
functional:
src: 'dist/transparency.js'
options:
outfile: 'FunctionalSpecRunner.html'
vendor: ['spec/lib/jquery-1.9.1.min.js']
specs: ['spec/!(amd*|performance*|browserGlobal*|nojQuery*|server*)Spec.js']
helpers: ['spec/specHelper.js', 'spec/lib/jasmine.tap_reporter.js']
performance:
src: 'dist/transparency.js'
options:
outfile: 'PerformanceSpecRunner.html'
vendor: ['spec/lib/jquery-1.9.1.min.js', 'spec/lib/benchmark.js', 'spec/lib/handlebars.js']
specs: ['spec/performanceSpec.js']
helpers: 'spec/specHelper.js'
nojQuery:
src: 'dist/transparency.js'
options:
outfile: 'NoJQuerySpecRunner.html'
specs: ['spec/nojQuerySpec.js']
helpers: 'spec/specHelper.js'
template: require('grunt-template-jasmine-requirejs')
amd:
src: 'dist/transparency.js'
options:
outfile: 'AmdSpecRunner.html'
vendor: ['spec/lib/jquery-1.9.1.min.js']
specs: ['spec/amdSpec.js']
helpers: 'spec/specHelper.js'
template: require('grunt-template-jasmine-requirejs')
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.registerTask 'tdd', ['jasmine:functional', 'jasmine:amd', 'jasmine:nojQuery']
grunt.registerTask 'test', ['jasmine']
grunt.registerTask 'build-tests', ['jasmine:functional:build', 'jasmine:amd:build', 'jasmine:performance:build']
grunt.registerTask 'default', ['tdd', 'build-tests']