Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
#2 add missing npm scripts
  • Loading branch information
erikhofer committed Nov 15, 2018
1 parent 5468829 commit fba7425
Show file tree
Hide file tree
Showing 16 changed files with 1,101 additions and 305 deletions.
20 changes: 15 additions & 5 deletions README.adoc
Expand Up @@ -12,24 +12,34 @@ This is a monorepo managed with https://lernajs.io[Lerna]. Sub-modules are locat
npm install
npx lerna bootstrap

NOTE: All following `lerna run` commands can be used for individual sub-modules by using the https://www.npmjs.com/package/@lerna/filter-options#--scope-glob[`--scope`] parameter or by using `npm run` inside the sub-module directory.
NOTE: The following commands can either be run at the project root to affect all sub-modules or individually inside of each sub-module. Note that there are inter-module dependencies. If you want to build/start the client or server individually, you first have to build all shared modules.

### Run the application

npm start

Server listens at http://localhost:3001

Client is accessible at http://localhost:3000

This will also watch for changes in the sources of the module(s) and automatically re-compile.

### Verify changes before commiting

Run tests:

npx lerna run test
npm test

Run linters:

npx lerna run lint
npm run lint

Try to automatically fix linting issues:

npx lerna run fix
npm run fix

Run tests and linters:

NOTE: Always run this before submitting a pull-request. If this command does't complete successfully, a pull-request cannot be merged.

npx lerna run verify
npm run verify

0 comments on commit fba7425

Please sign in to comment.