[MediaWiki-commits] [Gerrit] mediawiki...Wikisource[master]: Adds all the MediaWiki extensions usual boilerplate
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/373597 ) Change subject: Adds all the MediaWiki extensions usual boilerplate .. Adds all the MediaWiki extensions usual boilerplate Change-Id: Ie08909f4e20155649de7f95452b67f9d5f7a5d10 --- A .eslintrc.json A .gitignore A .jscsrc A .jshintignore A .jshintrc A .stylelintrc A CODE_OF_CONDUCT.md A COPYING A Gruntfile.js A composer.json A extension.json A i18n/en.json A i18n/qqq.json A includes/Hooks.php A package.json A phpcs.xml 16 files changed, 533 insertions(+), 0 deletions(-) Approvals: jenkins-bot: Verified Tpt: Looks good to me, approved diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000..bf3d404 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,16 @@ +{ + "extends": "wikimedia", + "env": { + "browser": true, + "jquery": true + }, + "globals": { + "OO": false, + "mediaWiki": false, + "mw": false, + "ve": false + }, + "rules": { + "dot-notation": [ "error", { "allowKeywords": true } ] + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 000..21db03c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*~ +*.kate-swp +.*.swp +.htaccess +/node_modules/ +/vendor/ +/composer.lock diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 000..023541b --- /dev/null +++ b/.jscsrc @@ -0,0 +1,21 @@ +{ + "preset": "wikimedia", + + "jsDoc": { + "checkAnnotations": { + "preset": "jsduck5", + "extra": { + "this": "some", + "source": "some", + "see": "some" + } + }, + "checkTypes": "strictNativeCase", + "checkParamNames": true, + "checkRedundantAccess": true, + "checkRedundantReturns": true, + "requireNewlineAfterDescription": true, + "requireParamTypes": true, + "requireReturnTypes": true + } +} diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 000..4513972 --- /dev/null +++ b/.jshintignore @@ -0,0 +1,3 @@ +modules/jquery/** +node_modules/** +vendor/** diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000..1a54bf2 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,21 @@ +{ + // Enforcing + "bitwise": true, + "eqeqeq": true, + "freeze": true, + "latedef": true, + "noarg": true, + "nonew": true, + "undef": true, + "unused": true, + + // Environment + "jquery": true, + "browser": true, + + "globals": { + "mw": false, + "OO": false, + "ve": false + } +} diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 000..2c90730 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,3 @@ +{ + "extends": "stylelint-config-wikimedia" +} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000..d8e5d08 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1 @@ +The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct). diff --git a/COPYING b/COPYING new file mode 100644 index 000..d159169 --- /dev/null +++ b/COPYING @@ -0,0 +1,339 @@ +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions
[MediaWiki-commits] [Gerrit] mediawiki...Wikisource[master]: Adds all the MediaWiki extensions usual boilerplate
Tpt has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/373597 ) Change subject: Adds all the MediaWiki extensions usual boilerplate .. Adds all the MediaWiki extensions usual boilerplate Change-Id: Ie08909f4e20155649de7f95452b67f9d5f7a5d10 --- A .eslintrc.json A .gitignore A .jscsrc A .jshintignore A .jshintrc A .stylelintrc A CODE_OF_CONDUCT.md A COPYING A Gruntfile.js A composer.json A extension.json A i18n/en.json A i18n/qqq.json A package.json A phpcs.xml 15 files changed, 522 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikisource refs/changes/97/373597/1 diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000..bf3d404 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,16 @@ +{ + "extends": "wikimedia", + "env": { + "browser": true, + "jquery": true + }, + "globals": { + "OO": false, + "mediaWiki": false, + "mw": false, + "ve": false + }, + "rules": { + "dot-notation": [ "error", { "allowKeywords": true } ] + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 000..21db03c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*~ +*.kate-swp +.*.swp +.htaccess +/node_modules/ +/vendor/ +/composer.lock diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 000..023541b --- /dev/null +++ b/.jscsrc @@ -0,0 +1,21 @@ +{ + "preset": "wikimedia", + + "jsDoc": { + "checkAnnotations": { + "preset": "jsduck5", + "extra": { + "this": "some", + "source": "some", + "see": "some" + } + }, + "checkTypes": "strictNativeCase", + "checkParamNames": true, + "checkRedundantAccess": true, + "checkRedundantReturns": true, + "requireNewlineAfterDescription": true, + "requireParamTypes": true, + "requireReturnTypes": true + } +} diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 000..4513972 --- /dev/null +++ b/.jshintignore @@ -0,0 +1,3 @@ +modules/jquery/** +node_modules/** +vendor/** diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000..1a54bf2 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,21 @@ +{ + // Enforcing + "bitwise": true, + "eqeqeq": true, + "freeze": true, + "latedef": true, + "noarg": true, + "nonew": true, + "undef": true, + "unused": true, + + // Environment + "jquery": true, + "browser": true, + + "globals": { + "mw": false, + "OO": false, + "ve": false + } +} diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 000..2c90730 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,3 @@ +{ + "extends": "stylelint-config-wikimedia" +} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000..d8e5d08 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1 @@ +The development of this software is covered by a [Code of Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct). diff --git a/COPYING b/COPYING new file mode 100644 index 000..d159169 --- /dev/null +++ b/COPYING @@ -0,0 +1,339 @@ +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that