UNPKG

wdio-iedriver-service

Version:
61 lines (59 loc) 1.49 kB
module.exports = function (grunt) { grunt.initConfig({ pkgFile: 'package.json', clean: ['build'], babel: { options: { sourceMap: false }, dist: { files: [{ expand: true, cwd: './lib', src: ['**/*.js'], dest: 'build', ext: '.js' }] } }, watch: { dist: { files: ['./lib/**/*.js'], tasks: ['babel:dist'] } }, eslint: { target: [ 'index.js', 'lib/**/*.js' ] }, contributors: { options: { commitMessage: 'update contributors' } }, bump: { options: { commitMessage: 'v%VERSION%', pushTo: 'upstream' } } }) require('load-grunt-tasks')(grunt) grunt.registerTask('default', ['build']) grunt.registerTask('build', 'Build wdio-iedriver-service', function () { grunt.task.run([ 'eslint', 'clean', 'babel' ]) }) grunt.registerTask('release', 'Bump and tag version', function (type) { grunt.task.run([ 'build', 'contributors', 'bump:' + (type || 'patch') ]) }) }