diff --git a/README.md b/README.md index a5f20fa..e82a0d2 100644 --- a/README.md +++ b/README.md @@ -507,3 +507,12 @@ hooks with the following command: ```bash git config core.hooksPath .githooks ``` + +## Development + +Install dependencies before running lint or tests: + +```bash +npm install +npm run lint +``` diff --git a/package.json b/package.json index 8076360..e0dc561 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "test": "mocha dist/tests/**/*.spec.js --reporter spec", "test_watch": "tsc && mocha dist/tests/**/*.spec.js --reporter spec --watch", "cover": "istanbul cover node_modules/mocha/bin/_mocha dist/tests/**/*.spec.js -- -R spec", - "cover:nyx": "nyc npm test" + "cover:nyx": "nyc npm test", + "lint": "tslint -c tslint.json -p tsconfig.json" }, "repository": { "type": "git",