-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
51 lines (48 loc) · 1.26 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
module.exports = (grunt)->
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
coffee: {
files: ['src/javascripts/**/*.coffee'],
tasks: ['coffee']
},
javascript: {
files: ["app/javascripts/*.js", "specs/*_spec.js"],
tasks: ['test']
},
less: {
files: ["src/css/*.less"],
tasks: ['less']
}
},
coffee: {
compile: {
files: {
'app/javascripts/app.js': ['src/javascripts/components/*.coffee','src/javascripts/*.coffee']
}
}
},
jasmine: {
src: 'app/javascripts/*.js',
options: {
specs: 'spec/*_spec.js',
helpers: 'spec/*_helper.js',
vendor: [
"http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"
]
}
},
less: {
development: {
files: {
"app/stylesheets/app.css": ["node_modules/normalize.css/normalize.css","src/css/app.less"]
}
}
}
})
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-jasmine')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('test', ['jasmine'])
grunt.registerTask('default', ['watch'])