-
Notifications
You must be signed in to change notification settings - Fork 30
/
Gruntfile.coffee
36 lines (35 loc) · 888 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
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.initConfig
coffee:
dev: files: 'src/index.js': 'src/*.coffee'
test: files: 'spec/electron_cookies_spec.js': 'spec/*.coffee'
simplemocha: dev:
src: 'spec/electron_cookies_spec.js'
options:
reporter: 'spec'
slow: 200
timeout: 1000
watch: all:
files: [
'src/*.coffee'
'spec/*.coffee'
]
tasks: [
'buildDev'
'buildTest'
'test'
]
grunt.registerTask 'test', 'simplemocha:dev'
grunt.registerTask 'buildDev', 'coffee:dev'
grunt.registerTask 'buildTest', 'coffee:test'
grunt.registerTask 'default', [
'buildDev'
'buildTest'
'test'
'watch:all'
]
# ---
# generated by js2coffee 2.0.4