forked from h2non/grunt-beautiful-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
executable file
·78 lines (65 loc) · 1.91 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
clean: ['.tmp/**', 'out/**', 'tasks/*.js', 'test/**/*.js']
coffeelint:
tasks: 'tasks/*.coffee'
test: 'test/*.coffee'
grunt: 'Gruntfile.coffee'
options:
max_line_length:
value: 120
level: 'warn'
no_trailing_whitespace:
level: 'warn'
no_tabs:
level: 'error'
indentation:
value: 2
level: 'error'
coffee:
tasks:
files:
'tasks/bfdocs.js': 'tasks/bfdocs.coffee'
options:
bare: true
bfdocs:
sample:
options:
title: 'Sample docs'
manifest: 'test/fixtures/sample/manifest.json'
dest: '.tmp/sample'
files:
'./tmp/sample': [ 'test/fixtures/sample/*.md' ]
onlyOptions:
options:
title: 'Sample docs options'
manifest: 'test/fixtures/sample/manifest.json'
dest: '.tmp/options'
manifests:
options:
title: 'Sample docs manifest'
manifest: [ 'test/fixtures/manifests/*.json' ]
files: [
{
src: [ 'test/fixtures/manifests/**/*.md' ]
dest: '.tmp/manifests'
}
]
manifestObj:
options:
title: 'Sample object manifest'
dest: '.tmp/manifest'
manifest:
title: 'Super awesome docs'
files: [ 'test/fixtures/manifests/docs/*.md' ]
nodeunit:
tests: ['test/*_test.coffee']
grunt.loadTasks 'tasks'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-nodeunit'
grunt.loadNpmTasks 'grunt-release'
grunt.registerTask 'default', ['clean', 'coffeelint', 'coffee']
grunt.registerTask 'test', ['default', 'bfdocs', 'nodeunit']