-
Notifications
You must be signed in to change notification settings - Fork 7
/
gruntfile.js
39 lines (37 loc) · 893 Bytes
/
gruntfile.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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-browserify');
grunt.initConfig({
browserify: {
umd: {
files: {
'dist/react-bacon.js': './src/react-bacon.js'
},
options: {
bundleOptions: {
standalone: 'ReactBacon'
},
transform: ['browserify-shim']
}
},
test: {
files: {
'tmp/specs.js': './spec/**/*_spec.js'
},
options: {
alias: ['./src/react-bacon.js:react-bacon'],
transform: ['reactify']
}
}
},
jasmine: {
options: {
specs: ['tmp/specs.js'],
reporter: 'spec'
},
src: ['dist/react-bacon.js']
}
});
grunt.registerTask('spec', ['browserify:test', 'jasmine']);
grunt.registerTask('default', 'spec');
};