Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/249410
Change subject: build: Update npm and adding composer test
......................................................................
build: Update npm and adding composer test
Run jshint through npm.
Add composer.json and run phplint through it. In the future we can add php
code sniffer to it.
Also update grunt-jsonlint to 1.0.5
Change-Id: I5a18e378d59b7c870b78199dffb9aa903644e27f
---
M .gitignore
M .jshintignore
A composer.json
M package.json
4 files changed, 15 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GuidedTour
refs/changes/10/249410/1
diff --git a/.gitignore b/.gitignore
index d536495..12941e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
*.DS_Store
docs/
node_modules/
+vendor/
\ No newline at end of file
diff --git a/.jshintignore b/.jshintignore
index 77f12ae..3d57933 100644
--- a/.jshintignore
+++ b/.jshintignore
@@ -1 +1,3 @@
docs/
+node_modules/
+vendor/
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..f2883f7
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,10 @@
+{
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "0.9"
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor"
+ ]
+ }
+}
diff --git a/package.json b/package.json
index 3489c4b..c3d4d83 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
"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.4"
+ "grunt-jsonlint": "1.0.5"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/249410
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a18e378d59b7c870b78199dffb9aa903644e27f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GuidedTour
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits