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" + } }