Robert Vogel has uploaded a new change for review.
https://gerrit.wikimedia.org/r/267657
Change subject: Jenkins requirements
......................................................................
Jenkins requirements
Added files from master branch that are required by the tests performed by
jenkins
Change-Id: If9eea1b116aeed96d500e6612daecf9c132bd64d
---
A .jshintignore
A .jshintrc
A Gruntfile.js
A composer.json
A package.json
5 files changed, 113 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/57/267657/1
diff --git a/.jshintignore b/.jshintignore
new file mode 100644
index 0000000..eef0e20
--- /dev/null
+++ b/.jshintignore
@@ -0,0 +1,2 @@
+resources/extjs
+resources/bluespice.extjs/Ext.ux
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..d39be9a
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,26 @@
+{
+ // Enforcing
+ "bitwise": false,
+ "eqeqeq": false,
+ "freeze": false,
+ "latedef": true,
+ "noarg": true,
+ "nonew": true,
+ "undef": false,
+ "unused": false,
+ "strict": false,
+
+ // Relaxing
+ "es5": false,
+
+ // Environment
+ "browser": true,
+ "jquery": true,
+
+ "globals": {
+ "mediaWiki": false,
+ "mw": false,
+ "blueSpice": false,
+ "$": false
+ }
+}
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..bbc8978
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,43 @@
+/*jshint node:true */
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+ grunt.initConfig( {
+ jshint: {
+ options: {
+ jshintrc: true
+ },
+ all: [
+ '**/*.js',
+ '!node_modules/**',
+ '!resources/bluespice.extjs/Ext.ux/**',
+ '!resources/extjs/**'
+ ]
+ },
+ banana: {
+ all: [
+ 'i18n/core/',
+ 'i18n/credits/',
+ 'i18n/diferred/',
+ 'i18n/diagnostics/',
+ 'i18n/extjs/',
+ 'i18n/extjs-portal/',
+ 'i18n/installer/',
+ 'i18n/notifications/',
+ 'i18n/validator/'
+ ]
+ },
+ jsonlint: {
+ all: [
+ '*.json',
+ '**/*.json',
+ '!node_modules/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'default', 'test' );
+};
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..fa64b11
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,30 @@
+{
+ "name": "hallowelt/bluespice-foundation",
+ "description": "This package contains basic classes/functions/resources
of BlueSpice for MediaWiki",
+ "keywords": [
+ "mediawiki",
+ "wiki"
+ ],
+ "license": "GPL-2.0+",
+ "type": "mediawiki-extension",
+ "homepage": "https://www.bluespice.com",
+ "authors": [
+ {
+ "name": "Hallo Welt! Medienwerkstatt GmbH",
+ "email": "[email protected]",
+ "homepage": "http://www.hallowelt.com"
+ }
+ ],
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "0.9.2"
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor"
+ ]
+ },
+ "support": {
+ "issues": "https://sourceforge.net/projects/bluespice/support",
+ "wiki": "https://help.bluespice.com"
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..ebf5796
--- /dev/null
+++ b/package.json
@@ -0,0 +1,12 @@
+{
+ "scripts": {
+ "test": "grunt test"
+ },
+ "devDependencies": {
+ "grunt": "0.4.5",
+ "grunt-cli": "0.1.13",
+ "grunt-contrib-jshint": "0.11.3",
+ "grunt-banana-checker": "0.4.0",
+ "grunt-jsonlint": "1.0.7"
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/267657
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If9eea1b116aeed96d500e6612daecf9c132bd64d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: REL1_23
Gerrit-Owner: Robert Vogel <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits