-
Notifications
You must be signed in to change notification settings - Fork 15
/
Gruntfile.js
79 lines (77 loc) · 2.12 KB
/
Gruntfile.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
module.exports = function(grunt) {
grunt.initConfig({
watch: {
all: {
files: ['lib/**/*', 'spec/**/*'],
tasks: ['coffeelint', 'spec:unit']
}
},
spec: {
options: {
minijasminenode: {
showColors: true
}
},
unit: {
options: {
specs: 'spec/unit/**/*.{js,coffee}'
}
},
integration: {
options: {
specs: 'spec/integration/**/*.{js,coffee}'
}
}
},
coffeelint: {
options: {
max_line_length: {
level: 'ignore'
}
},
lib: {
files: {
src: ['lib/**/*.coffee']
}
},
spec: {
files: {
src: ['spec/**/*.coffee']
}
}
},
shrinkwrap: {
dev: true, // whether the shrinkwrap dev dependencies. Defaults to false.
dedupe: false, // whether to run dedupe before shrinkwrapping. Defaults to false.
prune: false // whether to run prune before deduping. Defaults to false.
},
eslint: {
lib: ['lib/**/*.coffee']
},
bump: {
options: {
files: ['package.json'],
updateConfigs: [],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: ['package.json', 'npm-shrinkwrap.json'], // ['-a'] for all files
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: false,
// pushTo: 'origin',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
}
}
});
grunt.loadNpmTasks('grunt-coffeelint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jasmine-bundle');
grunt.loadNpmTasks('grunt-shrinkwrap');
grunt.loadNpmTasks("gruntify-eslint");
grunt.loadNpmTasks('grunt-bump');
grunt.registerTask('default', ['coffeelint', 'eslint', 'spec:unit'] );
grunt.registerTask('integration', ['coffeelint', 'eslint', 'spec:integration']);
grunt.registerTask('travis-ci', ['coffeelint', 'eslint', 'spec:unit'] );
grunt.registerTask('release', ['bump:patch:bump-only', 'shrinkwrap', 'bump::commit-only'] );
};