-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.coffee
41 lines (36 loc) · 971 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
jasmine:
dist:
src: 'dist/suspend.js'
options:
specs: 'dist/suspend.spec.js'
vendor: [
'lib/esprima/esprima.js'
]
coffee:
compile:
files:
'dist/suspend.js': 'suspend.coffee'
'dist/suspend.spec.js': 'suspend.spec.coffee'
coffeelint:
app:
files:
src: ['*.coffee']
options:
max_line_length:
value: 100
no_backticks:
level: 'ignore'
watch:
scripts:
files: ['*.coffee']
tasks: ['coffee']
options:
spawn: false
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.registerTask 'default', ['coffee', 'coffeelint', 'jasmine']