[MediaWiki-commits] [Gerrit] Initial commit - change (generator-wikimedia-php-library)

2015-07-09 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Initial commit
..


Initial commit

This is the initial commit of a Yeoman generator for PHP libraries that conform
to Wikimedia specifications, as affirmed by the RFC process and described in
https://www.mediawiki.org/wiki/Manual:Developing_libraries.

Known bug: if PSR-2 code style standard is selected, the generated project does
not pass its own lint check, because the autogenerated PHP files use the
MediaWiki style. I plan to solve this issue in a follow-up commit.

Bug: T104685
Change-Id: Ic8962b0f37dd68a7dc1bcce916bf946774cf74b0
---
A .gitignore
A .jshintrc
A .travis.yml
A LICENSE
A NOTICE
A README.md
A generators/app/index.js
A generators/app/licenses.js
A generators/app/packagist.js
A generators/app/templates/_Doxyfile
A generators/app/templates/_Library.php
A generators/app/templates/_LibraryTest.php
A generators/app/templates/_composer.json
A generators/app/templates/_editorconfig
A generators/app/templates/_gitreview
A generators/app/templates/_phpcs.xml
A generators/app/templates/_phpunit.xml.dist
A generators/app/templates/gitignore
A generators/app/templates/licenses/Apache/LICENSE
A generators/app/templates/licenses/Apache/_NOTICE
A generators/app/templates/licenses/Apache/_header
A generators/app/templates/licenses/GPLv2/COPYING
A generators/app/templates/licenses/GPLv2/_header
A generators/app/templates/licenses/MIT/_LICENSE
A generators/app/templates/licenses/MIT/_header
A generators/app/templates/travis.yml
A package.json
A test/test-app.js
28 files changed, 1,323 insertions(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..c2658d7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules/
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 000..e1ea67d
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,13 @@
+{
+   // Enforcing
+   bitwise: true,
+   eqeqeq: true,
+   freeze: true,
+   latedef: true,
+   noarg: true,
+   nonew: true,
+   undef: true,
+   unused: true,
+   strict: false,
+   node: true
+}
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000..dedfc07
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,6 @@
+sudo: false
+language: node_js
+node_js:
+  - 'iojs'
+  - '0.12'
+  - '0.10'
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000..d645695
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+   Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+  License shall mean the terms and conditions for use, reproduction,
+  and distribution as defined by Sections 1 through 9 of this document.
+
+  Licensor shall mean the copyright owner or entity authorized by
+  the copyright owner that is granting the License.
+
+  Legal Entity shall mean the union of the acting entity and all
+  other entities that control, are controlled by, or are under common
+  control with that entity. For the purposes of this definition,
+  control means (i) the power, direct or indirect, to cause the
+  direction or management of such entity, whether by contract or
+  otherwise, or (ii) ownership of fifty percent (50%) or more of the
+  outstanding shares, or (iii) beneficial ownership of such entity.
+
+  You (or Your) shall mean an individual or Legal Entity
+  exercising permissions granted by this License.
+
+  Source form shall mean the preferred form for making modifications,
+  including but not limited to software source code, documentation
+  source, and configuration files.
+
+  Object form shall mean any form resulting from mechanical
+  transformation or translation of a Source form, including but
+  not limited to compiled object code, generated documentation,
+  and conversions to other media types.
+
+  Work shall mean the work of authorship, whether in Source or
+  Object form, made available under the License, as indicated by a
+  copyright notice that is included in or attached to the work
+  (an example is provided in the Appendix below).
+
+  Derivative Works shall mean any work, whether in Source or Object
+  form, that is based on (or derived from) the Work and for which the
+  editorial revisions, annotations, elaborations, or other modifications
+  represent, as a whole, an original work of authorship. For the purposes
+  of this License, Derivative Works shall not include works that remain
+  separable from, or merely link (or bind by name) to the interfaces of,
+  the Work and Derivative Works thereof.
+
+  Contribution shall mean 

[MediaWiki-commits] [Gerrit] Initial commit - change (generator-wikimedia-php-library)

2015-07-04 Thread Ori.livneh (Code Review)
Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/222874

Change subject: Initial commit
..

Initial commit

This is the initial commit of a Yeoman generator for PHP libraries that conform
to Wikimedia specifications, as affirmed by the RFC process and described in
https://www.mediawiki.org/wiki/Manual:Developing_libraries.

Known bug: if PSR-2 code style standard is selected, the generated project does
not pass its own lint check, because the autogenerated PHP files use the
MediaWiki style. I plan to solve this issue in a follow-up commit.

Bug: T104685
Change-Id: Ic8962b0f37dd68a7dc1bcce916bf946774cf74b0
---
A .gitignore
A .jshintrc
A .travis.yml
A LICENSE
A NOTICE
A README.md
A generators/app/index.js
A generators/app/licenses.js
A generators/app/templates/_Doxyfile
A generators/app/templates/_Library.php
A generators/app/templates/_LibraryTest.php
A generators/app/templates/_composer.json
A generators/app/templates/_editorconfig
A generators/app/templates/_gitreview
A generators/app/templates/_phpcs.xml
A generators/app/templates/_phpunit.xml.dist
A generators/app/templates/gitignore
A generators/app/templates/jshintrc
A generators/app/templates/licenses/Apache/LICENSE
A generators/app/templates/licenses/Apache/_NOTICE
A generators/app/templates/licenses/Apache/_header
A generators/app/templates/licenses/GPLv2/COPYING
A generators/app/templates/licenses/GPLv2/_header
A generators/app/templates/licenses/MIT/_LICENSE
A generators/app/templates/licenses/MIT/_header
A generators/app/templates/travis.yml
A package.json
A test/test-app.js
28 files changed, 1,275 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/generator-wikimedia-php-library 
refs/changes/74/222874/1

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..c2658d7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules/
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 000..e1ea67d
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,13 @@
+{
+   // Enforcing
+   bitwise: true,
+   eqeqeq: true,
+   freeze: true,
+   latedef: true,
+   noarg: true,
+   nonew: true,
+   undef: true,
+   unused: true,
+   strict: false,
+   node: true
+}
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000..dedfc07
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,6 @@
+sudo: false
+language: node_js
+node_js:
+  - 'iojs'
+  - '0.12'
+  - '0.10'
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000..d645695
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+   Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+  License shall mean the terms and conditions for use, reproduction,
+  and distribution as defined by Sections 1 through 9 of this document.
+
+  Licensor shall mean the copyright owner or entity authorized by
+  the copyright owner that is granting the License.
+
+  Legal Entity shall mean the union of the acting entity and all
+  other entities that control, are controlled by, or are under common
+  control with that entity. For the purposes of this definition,
+  control means (i) the power, direct or indirect, to cause the
+  direction or management of such entity, whether by contract or
+  otherwise, or (ii) ownership of fifty percent (50%) or more of the
+  outstanding shares, or (iii) beneficial ownership of such entity.
+
+  You (or Your) shall mean an individual or Legal Entity
+  exercising permissions granted by this License.
+
+  Source form shall mean the preferred form for making modifications,
+  including but not limited to software source code, documentation
+  source, and configuration files.
+
+  Object form shall mean any form resulting from mechanical
+  transformation or translation of a Source form, including but
+  not limited to compiled object code, generated documentation,
+  and conversions to other media types.
+
+  Work shall mean the work of authorship, whether in Source or
+  Object form, made available under the License, as indicated by a
+  copyright notice that is included in or attached to the work
+  (an example is provided in the Appendix below).
+
+  Derivative Works shall mean any work, whether in Source or Object
+  form, that is based on (or derived from) the Work and for which the
+  editorial revisions, annotations, elaborations, or other modifications
+  represent, as a whole, an original work of authorship. For the purposes
+  of this License, Derivative Works shall not include works that remain
+  separable from, or merely link (or bind by name) to the interfaces of,
+  the