forked from derekchiang/Coffee-Formatter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.coffee
56 lines (42 loc) · 1.26 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
50
51
52
53
54
55
56
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
lib:
expand: true
cwd: 'src/'
src: ['*.litcoffee', '*.coffee']
dest: 'lib/'
ext: '.js'
test:
expand: true
cwd: 'test/'
src: ['*.coffee']
dest: 'test/'
ext: '.js'
coffeelint:
options:
no_empty_param_list:
level: 'error'
max_line_length:
level: 'ignore'
src: [ 'src/*.litcoffee', 'src/*.coffee', 'test/*.coffee', '*.coffee']
gruntfile: ['Gruntfile.coffee']
docco:
docs:
src: ['src/*.litcoffee', 'src/*.coffee'],
options:
output: 'docs/'
layout: 'linear'
simplemocha:
all:
src: ['test/*.js']
clean: ['lib/', 'docs', 'test/*.js']
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-docco')
grunt.loadNpmTasks('grunt-simple-mocha')
grunt.registerTask('default', ['coffee', 'coffeelint', 'docco'])
grunt.registerTask('test', ['coffee', 'coffeelint', 'simplemocha'])
grunt.registerTask('prepublish', ['clean', 'coffee', 'coffeelint', 'docco'])