This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Gruntfile.coffee
49 lines (46 loc) · 1.5 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
module.exports = (grunt) ->
grunt.initConfig
jasmine_node:
projectRoot: "."
requirejs: false
forceExit: true
extensions: 'coffee'
coffee:
compile:
expand: true
flatten: true
cwd: '.'
src: ['src/*.coffee']
dest: 'lib/'
ext: '.js'
docco:
compile:
src: ['src/*.coffee']
options:
output: 'docs/'
coffeelint:
app: ['src/*.coffee', 'Gruntfile.coffee']
options:
indentation:
value: 4
concat:
options:
stripBanners: true
banner: '#!/usr/bin/env node\n'
dist:
src: ['lib/jira.js']
dest: 'lib/jira.js'
grunt.loadNpmTasks 'grunt-jasmine-node'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-docco'
grunt.loadNpmTasks 'grunt-bump'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.registerTask 'default',
['coffeelint', 'coffee', 'jasmine_node', 'concat']
grunt.registerTask 'test',
['coffeelint', 'coffee', 'jasmine_node']
grunt.registerTask 'prepare',
['coffeelint', 'coffee', 'jasmine_node', 'docco', 'concat', 'bump']
grunt.registerTask 'force',
['coffeelint', 'coffee', 'jasmine_node', 'docco', 'concat']