summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/CategoryTree/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/CategoryTree/Gruntfile.js')
-rw-r--r--www/wiki/extensions/CategoryTree/Gruntfile.js43
1 files changed, 43 insertions, 0 deletions
diff --git a/www/wiki/extensions/CategoryTree/Gruntfile.js b/www/wiki/extensions/CategoryTree/Gruntfile.js
new file mode 100644
index 00000000..4aab7c17
--- /dev/null
+++ b/www/wiki/extensions/CategoryTree/Gruntfile.js
@@ -0,0 +1,43 @@
+/*!
+ * Grunt file
+ *
+ * @package CategoryTree
+ */
+
+/* eslint-env node */
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-eslint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+ grunt.loadNpmTasks( 'grunt-stylelint' );
+
+ grunt.initConfig( {
+ banana: {
+ all: [ 'i18n/' ]
+ },
+ eslint: {
+ all: [
+ '**/*.js',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
+ },
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
+ },
+ stylelint: {
+ all: [
+ '**/*.css',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'eslint', 'stylelint' ] );
+ grunt.registerTask( 'default', 'test' );
+};