From 9aa68ad028332a47e3753155f87e0ea1c3a07313 Mon Sep 17 00:00:00 2001 From: Ivan K Date: Tue, 29 Jan 2019 12:30:04 -0800 Subject: [PATCH] travis CI tests for communities.json --- .gitignore | 4 ++++ .travis.yml | 3 +++ package.json | 9 ++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index e43b0f9..d8f07bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ .DS_Store +node_modules/ +yarn.lock +package-lock.json +*.log diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9ef0fde --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "lts/*" diff --git a/package.json b/package.json index 0d1f2e6..23d8367 100644 --- a/package.json +++ b/package.json @@ -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" + } }