UNPKG

path-complete-extname

Version:

path.extname implementation adapted to also include multiple dots extensions.

61 lines (48 loc) 1.11 kB
'use strict'; module.exports = function (grunt) { // Load all grunt tasks require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc', reporter: require('jshint-stylish') }, gruntfile: { src: 'Gruntfile.js' }, lib: { src: ['index.js'] }, test: { src: ['test.js'] } }, mochaTest: { test: { options: { reporter: 'spec' }, src: ['test.js'] } }, sg_release: { options: { skipBowerInstall: true, developBranch: 'develop', masterBranch: 'master', files: [ 'package.json', 'README.md' ], commitMessage: 'Release v%VERSION%', commitFiles: ['-a'], // '-a' for all files pushTo: 'origin' } } }); grunt.registerTask('test', ['mochaTest:test']); grunt.registerTask('default', ['jshint:test', 'jshint:lib', 'test']); grunt.registerTask('release', ['default', 'sg_release']); };