subzero-starter-kit icon indicating copy to clipboard operation
subzero-starter-kit copied to clipboard

Added npm run shortcuts

Open FGRibreau opened this issue 6 years ago • 0 comments

Let the dev manage everything through npm scripts. Also added npm run psql:logs

╰─ npm run
Lifecycle scripts included in starter-kit:
  test
    npm run test_db && npm run test_rest && npm run test_graphql

available via `npm run-script`:
  dev
    docker-compose up --force-recreate
  dev:down
    docker-compose down
  psql:logs
    . .env && docker logs -f ${COMPOSE_PROJECT_NAME}_db_1
  test_graphql
    mocha  --no-timeouts --require babel-core/register ./tests/graphql/
  test_rest
    mocha --no-timeouts --require babel-core/register ./tests/rest/
  test_db
    node tests/bin/test_db.js
npm run dev

FGRibreau avatar Mar 02 '20 10:03 FGRibreau