summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/EmailLogin/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/EmailLogin/Gruntfile.js')
-rw-r--r--www/wiki/extensions/EmailLogin/Gruntfile.js58
1 files changed, 58 insertions, 0 deletions
diff --git a/www/wiki/extensions/EmailLogin/Gruntfile.js b/www/wiki/extensions/EmailLogin/Gruntfile.js
new file mode 100644
index 00000000..85f1a607
--- /dev/null
+++ b/www/wiki/extensions/EmailLogin/Gruntfile.js
@@ -0,0 +1,58 @@
+/*jslint node: true */
+module.exports = function (grunt) {
+ 'use strict';
+ grunt.initConfig(
+ {
+ phpcs: {
+ options: {
+ standard: 'PSR2',
+ bin: 'vendor/bin/phpcs'
+ },
+ php: {
+ src: ['classes/*.php', 'controllers/*.php']
+ },
+ tests: {
+ src: ['tests/']
+ }
+ },
+ jslint: {
+ Gruntfile: {
+ src: ['Gruntfile.js']
+ }
+ },
+ phpunit: {
+ options: {
+ bin: 'php -dzend_extension=xdebug.so ./vendor/bin/phpunit',
+ stopOnError: true,
+ stopOnFailure: true,
+ followOutput: true
+ },
+ classes: {
+ dir: 'tests/'
+ }
+ },
+ jsonlint: {
+ manifests: {
+ src: '*.json',
+ options: {
+ format: true
+ }
+ }
+ },
+ fixpack: {
+ package: {
+ src: 'package.json'
+ }
+ }
+ }
+ );
+
+ grunt.loadNpmTasks('grunt-phpcs');
+ grunt.loadNpmTasks('grunt-phpunit');
+ grunt.loadNpmTasks('grunt-jslint');
+ grunt.loadNpmTasks('grunt-jsonlint');
+ grunt.loadNpmTasks('grunt-fixpack');
+
+ grunt.registerTask('lint', ['jslint', 'fixpack', 'jsonlint', 'phpcs']);
+ grunt.registerTask('test', ['phpunit']);
+};