Skip to content

Commit

Permalink
Move Gruntfile off of coffescript.
Browse files Browse the repository at this point in the history
  • Loading branch information
mprobst committed Jan 24, 2019
1 parent 0016647 commit 84f6596
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 71 deletions.
71 changes: 0 additions & 71 deletions Gruntfile.coffee

This file was deleted.

70 changes: 70 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs:
* https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
module.exports = function(grunt) {
grunt.initConfig({
build: {client: 'src/**/*.js'},

// JSHint options
// http://www.jshint.com/options/
jshint: {
plugin: {
files: {src: 'lib/**/*.js'},
options: {
// node
node: true,
strict: false
}
},
options: {
quotmark: 'single',
bitwise: true,
indent: 2,
camelcase: true,
strict: true,
trailing: true,
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noempty: true,
unused: true,
noarg: true,
sub: true,
undef: true,
maxdepth: 4,
maxlen: 100,
globals: {}
}
},

simplemocha: {
options: {ui: 'bdd', reporter: 'dot'},
unit: {src: ['test/**/*.spec.js']}
},

'npm-contributors':
{options: {commitMessage: 'chore: update contributors'}},

bump: {
options: {commitMessage: 'chore: release v%VERSION%', pushTo: 'upstream'}
}
});

grunt.loadNpmTasks('grunt-auto-release');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-npm');
grunt.loadNpmTasks('grunt-simple-mocha');

grunt.registerTask('default', ['jshint', 'test']);
grunt.registerTask('test', ['simplemocha:unit']);
return grunt.registerTask(
'release', 'Bump and publish to NPM.',
type => grunt.task.run(
['npm-contributors', `bump:${type || 'patch'}`, 'npm-publish']));
};

0 comments on commit 84f6596

Please sign in to comment.