grunt-kevoree
Version:
Automatically runs kevoree runtime (works like mvn kev:run plugin)
49 lines (38 loc) • 977 B
JavaScript
/*
* grunt-kevoree
* https://github.com/kevoree/kevoree-js
*
* Copyright (c) 2014 Maxime Tricoire
* Licensed under the LGPL-3.0 license.
*/
;
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js', 'tasks/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
// Before generating any new files, remove any previously-created files.
clean: {
tests: ['tmp']
},
kevoree: {
default: {}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['clean', 'kevoree']);
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test']);
};