node-slack-upload
Version:
A node module for uploading files to slack using multipart or string
69 lines (63 loc) • 1.41 kB
JavaScript
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
esnext: true,
bitwise: true,
camelcase: true,
curly: true,
eqeqeq: true,
eqnull: true,
immed: true,
indent: 2,
latedef: 'nofunc',
newcap: true,
node: true,
nonew: true,
noarg: true,
quotmark: 'single',
regexp: true,
undef: true,
unused: true,
trailing: true,
sub: true
},
all: ['Gruntfile.js', 'lib/**/*.js']
},
/**
* Increments the version number, etc.
*/
bump: {
options: {
files: [
'package.json'
],
commit: true,
commitMessage: 'chore(release): v%VERSION%',
commitFiles: [
'package.json',
'CHANGELOG.md'
],
createTag: false,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: false,
pushTo: 'origin'
}
},
/**
* Creates a changelog on a new version.
*/
changelog: {
options: {
dest: 'CHANGELOG.md'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-conventional-changelog');
// Default task(s).
grunt.registerTask('default', ['jshint']);
};