summaryrefslogtreecommitdiff
path: root/extensions/Nuke/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Nuke/Gruntfile.js')
-rw-r--r--extensions/Nuke/Gruntfile.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/extensions/Nuke/Gruntfile.js b/extensions/Nuke/Gruntfile.js
new file mode 100644
index 00000000..acb20a8a
--- /dev/null
+++ b/extensions/Nuke/Gruntfile.js
@@ -0,0 +1,28 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+
+ var conf = grunt.file.readJSON( 'extension.json' );
+ grunt.initConfig( {
+ jshint: {
+ options: {
+ jshintrc: true
+ },
+ all: [
+ '*.js'
+ ]
+ },
+ banana: conf.MessagesDirs,
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'default', 'test' );
+};