-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
43 lines (36 loc) · 987 Bytes
/
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
module.exports = (grunt) ->
grunt.initConfig
jshint:
all: [
'Gruntfile.js'
'server/src/**/*.js'
],
options:
jshintrc: '.jshintrc'
watch:
test:
files: ['server/**/*.coffee']
tasks: ['mochaTest:server']
mochaTest:
server:
options:
reporter: 'spec'
require: [
'coffee-script/register'
'co-mocha'
'server/spec/spec-global.coffee'
]
src: [
'server/spec/spec-helper.coffee'
'server/spec/**/*[Ss]pec.coffee'
]
less:
build:
files:
'./client/css/main.css': './client/styles/**/*.less'
grunt.loadNpmTasks 'grunt-contrib-jshint'
grunt.loadNpmTasks 'grunt-contrib-less'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.task.registerTask 'test', ['mochaTest:server']
grunt.task.registerTask 'default', ['jshint', 'test']