summaryrefslogtreecommitdiff
path: root/extensions/TimedMediaHandler/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/TimedMediaHandler/Gruntfile.js')
-rw-r--r--extensions/TimedMediaHandler/Gruntfile.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/extensions/TimedMediaHandler/Gruntfile.js b/extensions/TimedMediaHandler/Gruntfile.js
new file mode 100644
index 00000000..45380710
--- /dev/null
+++ b/extensions/TimedMediaHandler/Gruntfile.js
@@ -0,0 +1,34 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+ grunt.loadNpmTasks( 'grunt-jscs' );
+
+ grunt.initConfig( {
+ jshint: {
+ options: {
+ jshintrc: true
+ },
+ all: [
+ '*.js'
+ ]
+ },
+ jscs: {
+ src: '<%= jshint.all %>'
+ },
+ banana: {
+ all: 'i18n/'
+ },
+ jsonlint: {
+ all: [
+ '*.json',
+ '**/*.json',
+ '!node_modules/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'default', 'test' );
+};