forked from atom/apm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
39 lines (33 loc) · 1.13 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
glob_to_multiple:
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'lib'
ext: '.js'
coffeelint:
options:
configFile: 'coffeelint.json'
src: ['src/**/*.coffee']
test: ['spec/*.coffee']
gruntfile: ['Gruntfile.coffee']
shell:
test:
command: 'node node_modules/jasmine-focused/bin/jasmine-focused --captureExceptions --coffee spec'
options:
stdout: true
stderr: true
failOnError: true
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-shell')
grunt.loadNpmTasks('grunt-coffeelint')
grunt.registerTask 'clean', ->
grunt.file.delete('lib') if grunt.file.exists('lib')
grunt.file.delete('bin/node_darwin_x64') if grunt.file.exists('bin/node_darwin_x64')
grunt.registerTask('lint', ['coffeelint'])
grunt.registerTask('default', ['coffee', 'lint'])
grunt.registerTask('test', ['clean', 'default', 'shell:test'])
grunt.registerTask('prepublish', ['clean', 'coffee', 'lint'])