Skip to content

Commit

Permalink
Switch to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed May 23, 2021
1 parent 2b7c2b9 commit d1881e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4,643 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build
- run: yarn test
- run: npm install
- run: npm run build
- run: npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ docs/
node_modules/
package-lock.json
yarn-error.log
yarn.lock
8 changes: 4 additions & 4 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ Scripts are checked with [eslint](https://eslint.org/), formatted with [prettier

Additionally the ./tests folder contains the tests. Usually a test goes 1) create a game 2) modify the game state with one or more actions 3) assert that the final state is how it you expect.

- `yarn test` tests everything once
- `yarn test:watch` tests continously (good while developing)
- `yarn test:coverage` check test code coverage
- `npm test` tests everything once
- `npm run test:watch` tests continously (good while developing)
- `npm run test:coverage` check test code coverage

Additionally you can run yarn eslint public --fix to automatically format all scripts according to the prettier standards.

You can also just run ava directly and do as you please. Example: `yarn ava tests/actions.js --watch`
You can also just run ava directly and do as you please. Example: `npm test tests/actions.js --watch`

## Footnotes

Expand Down

0 comments on commit d1881e4

Please sign in to comment.