forked from victorquinn/dynasty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
43 lines (41 loc) · 1.15 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
module.exports = (grunt) ->
grunt.initConfig
coffee:
compile:
expand: true
cwd: 'src/'
src: ['**/*.coffee']
dest: 'lib/'
ext: '.js'
compileTests:
files: [ 'test/test.dynasty.js': ['test/src/**/*.coffee'] ]
coffeelint:
app: ['src/**/*.coffee']
options:
max_line_length:
level: "ignore"
shell:
publish:
options:
stdout: true
command: 'npm publish'
simplemocha:
options:
globals: ['should']
timeout: 300
ignoreLeaks: false
ui: 'bdd'
reporter: 'spec'
all:
src: ['test/**/*.js']
watch:
files: ['Gruntfile.coffee', 'src/**/*.coffee', 'test/src/**/*.coffee']
tasks: ['coffeelint', 'coffee', 'simplemocha']
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.loadNpmTasks 'grunt-shell'
grunt.registerTask 'test', ['coffee', 'simplemocha']
grunt.registerTask 'publish', ['coffee', 'shell:publish']
grunt.registerTask 'default', ['watch']