-
Notifications
You must be signed in to change notification settings - Fork 133
/
Gruntfile.js
51 lines (41 loc) · 1.05 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
'use strict';
module.exports = function(grunt) {
/**
* grunt release or grunt release:patch increment the patch number
* grunt release:minor increments the minor version number
* grunt release:major increments the major version number
*
* grunt readme to generate the readme (you might need to do grunt repos first)
*/
require('time-grunt')(grunt);
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'lib/**/*.js',
'test/**/*.js'
]
},
release: {
github: {
repo: 'dylang/node-rss',
accessTokenVar: 'GITHUB_ACCESS_TOKEN'
}
}
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('lint', [
'jshint'
]);
grunt.registerTask('default', [
'lint'
]);
grunt.registerTask('pre-publish', [
'lint',
'repos',
'readme'
]);
};