forked from HubSpot/humanize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
44 lines (39 loc) · 1.07 KB
/
grunt.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
module.exports = function(grunt) {
grunt.initConfig({
coffee: {
app: {
src: 'coffee/**/*.coffee',
dest: 'public/',
options: {
preserve_dirs: true,
base_path: 'coffee/',
bare: false
}
}
},
watch: {
scripts: {
files: '<config:coffee.app.src>',
tasks: 'coffee'
}
},
min: {
dist: {
src: 'public/src/*.js',
dest: 'public/dist/humanize.min.js'
}
},
jasmine: {
src: 'public/dist/humanize.min.js',
specs: 'public/test/*.spec.js',
timeout: 10000,
phantomjs: {
'ignore-ssl-errors': true
}
}
});
grunt.loadNpmTasks('grunt-coffee');
grunt.loadNpmTasks('grunt-jasmine-runner');
grunt.registerTask('default', 'coffee min');
grunt.registerTask('test', 'coffee min jasmine');
};