diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/ContactPage/Gruntfile.js |
first commit
Diffstat (limited to 'www/wiki/extensions/ContactPage/Gruntfile.js')
-rw-r--r-- | www/wiki/extensions/ContactPage/Gruntfile.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www/wiki/extensions/ContactPage/Gruntfile.js b/www/wiki/extensions/ContactPage/Gruntfile.js new file mode 100644 index 00000000..c557f4c8 --- /dev/null +++ b/www/wiki/extensions/ContactPage/Gruntfile.js @@ -0,0 +1,34 @@ +/*! + * Grunt file + * + * @package ContactPage + */ + +/*jshint node:true */ +module.exports = function ( grunt ) { + grunt.loadNpmTasks( 'grunt-banana-checker' ); + grunt.loadNpmTasks( 'grunt-jsonlint' ); + grunt.loadNpmTasks( 'grunt-contrib-jshint' ); + + var conf = grunt.file.readJSON( 'extension.json' ); + grunt.initConfig( { + banana: conf.MessagesDirs, + jshint: { + all: [ + '**/*.js', + '!node_modules/**', + '!vendor/**' + ] + }, + jsonlint: { + all: [ + '**/*.json', + '!node_modules/**', + '!vendor/**' + ] + } + } ); + + grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] ); + grunt.registerTask( 'default', 'test' ); +}; |