travis CI tests for communities.json

This commit is contained in:
Ivan K 2019-01-29 12:30:04 -08:00 committed by ivan k
parent 3b1b43864b
commit 9aa68ad028
3 changed files with 15 additions and 1 deletions

4
.gitignore vendored
View file

@ -1 +1,5 @@
.DS_Store
node_modules/
yarn.lock
package-lock.json
*.log

3
.travis.yml Normal file
View file

@ -0,0 +1,3 @@
language: node_js
node_js:
- "lts/*"

View file

@ -1,5 +1,12 @@
{
"name": "discord-open-source",
"version": "1.0.0",
"main": "communities.json"
"main": "communities.json",
"scripts": {
"test": "prettier -c communities.json || (npm run fmt && git diff && exit 1)",
"fmt": "prettier --write communities.json"
},
"devDependencies": {
"prettier": "^1.16.1"
}
}