forked from tebriel/jira-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
87 lines (82 loc) · 1.98 KB
/
grunt.js
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
79
80
81
82
83
84
85
86
87
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
jasmine_node: {
projectRoot: "./spec",
forceExit: false,
extensions: 'coffee',
jUnit: {
report: false,
savePath : "./build/reports/jasmine/",
useDotNotation: true,
consolidate: true
}
},
meta: {
banner: '#!/usr/bin/env node'
},
concat: {
dist: {
src: ['<banner>', '<file_strip_banner:lib/jira.js>'],
dest: 'lib/jira.js'
}
},
lint: {
files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
},
watch: {
files: ['src/**/*.coffee','spec/**/*.coffee'],
tasks: 'default'
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true
},
globals: {
exports: true
}
},
coffee: {
compile: {
files: {
'lib/*.js': ['src/*.coffee']
}
}
},
coffeelint: {
app: ['src/*.coffee'],
},
coffeelintOptions: {
indentation: {
value: 4,
level: "error"
}
},
docco: {
app: {
src: ['src/*.coffee']
}
}
});
// Default task.
grunt.registerTask('default', 'coffeelint coffee jasmine_node concat');
grunt.registerTask('test', 'coffeelint coffee jasmine_node');
grunt.registerTask('prepare', 'coffeelint coffee jasmine_node docco bump concat');
grunt.registerTask('force', 'coffeelint coffee jasmine_node docco concat');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.loadNpmTasks('grunt-docco');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-coffeelint');
};