Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Commit 9c6a237

Browse files
committed
Add package.json and run eslint checks using npm test
1 parent 613d694 commit 9c6a237

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ matrix:
1818

1919
before_script:
2020
- composer install --prefer-source
21-
- npm install eslint eslint-config-wikimedia
21+
- npm install
2222

2323
script:
2424
- composer test
25+
- npm test
2526
- bash ./build/travis/script.sh
2627

2728
notifications:

build/travis/script.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ phantomjs runTests.phantom.js ../../../tests/qunit/runTests.html
99
cd -
1010

1111
fi
12-
13-
./node_modules/.bin/eslint .
14-
exit $?

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "DataTypes",
3+
"repository": {
4+
"type": "git",
5+
"url": "https://github.com/wmde/DataTypes"
6+
},
7+
"license": "GPL-2.0+",
8+
"dependencies": {
9+
"jquery": "^3.2.1"
10+
},
11+
"devDependencies": {
12+
"eslint": "^3.19.0",
13+
"eslint-config-wikimedia": "0.4.0"
14+
},
15+
"scripts": {
16+
"test": "npm run eslint",
17+
"eslint": "eslint ."
18+
}
19+
}

0 commit comments

Comments
 (0)