From ebf1f92df7d8a12ec0dd23f67013b88d185e5f89 Mon Sep 17 00:00:00 2001 From: Jack Reed <phillipjreed@gmail.com> Date: Mon, 5 Mar 2018 15:50:07 -0700 Subject: [PATCH] add travis config --- README.md | 18 ++++++++++++++++++ package.json | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e46b803c..aed60de16 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,21 @@ store.dispatch(actions.focusWindow('window-1')) ```javascript store.getState() ``` + +## Running the tests + +```sh +$ npm test +``` + +or to continually watch the source files + +```sh +$ npm run test:watch +``` + +## Linting the project + +```sh +$ npm run lint +``` diff --git a/package.json b/package.json index 2b9a0a9fa..e7acc2257 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "lint": "node_modules/.bin/eslint ./", - "test": "node_modules/.bin/jest", + "test": "npm run lint && node_modules/.bin/jest", "test:watch": "npm test -- --watch", "build:umd": "node_modules/.bin/webpack --output-filename index.umd.js" }, -- GitLab