-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathGruntfile.coffee
49 lines (41 loc) · 1.11 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
44
45
46
47
48
49
'use strict'
module.exports = ->
# Initialize configuration
@initConfig
# CoffeeLint configuration
coffeelint:
grunt:
src: ['Gruntfile.coffee']
lib:
src: ['lib/**/*.coffee']
spec:
src: ['spec/**/*.coffee']
lesslint:
src: ['stylesheets/**/*.less']
watch:
options:
interrupt: true
grunt:
files: ['Gruntfile.coffee']
tasks: ['coffeelint:grunt']
lib:
files: ['lib/**/*.coffee']
tasks: ['coffeelint:lib']
spec:
files: ['spec/**/*.coffee']
tasks: ['coffeelint:spec']
stylesheets:
files: ['stylesheets/**/*.less']
tasks: ['lesslint']
# Load tasks
@loadNpmTasks 'grunt-coffeelint'
@loadNpmTasks 'grunt-lesslint'
@loadNpmTasks 'grunt-apm'
@loadNpmTasks 'grunt-contrib-watch'
# Aggregate some tasks
@registerTask 'lint', ['lesslint', 'coffeelint']
@registerTask 'link', ['apm-link']
@registerTask 'unlink', ['apm-unlink']
@registerTask 'test', ['apm-test']
@registerTask 'dev', ['apm-link', 'watch']
@registerTask 'default', ['lint', 'test']