-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
40 lines (38 loc) · 1.19 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
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
coffee:
compile:
expand: true
cwd: './'
src: ['bin/**/*.coffee', 'lib/**/*.coffee']
dest: './'
ext: '.js'
compileTestSpecs:
expand: true
cwd: 'test'
src: ['**/*.spec.coffee']
dest: 'test'
ext: '.spec.js'
coffeelint:
# global options
options:
max_line_length:
value: 120
level: 'warn'
app: ['bin/**/*.coffee', 'lib/**/*.coffee']
watch:
app:
files: '**/*.coffee'
tasks: ['coffee:compile']
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'check', ['coffeelint']
grunt.registerTask 'compile', ['coffee:compile']
grunt.registerTask 'compile-tests', ['coffee:compileTestSpecs']
grunt.registerTask 'compile-all', ['compile', 'compile-tests']
grunt.registerTask 'build', ['check', 'compile']
grunt.registerTask 'build-all', ['check', 'compile-all']
grunt.registerTask 'default', ['build']