Merge pull request #92 from Toverto/change-db-scripts

Change db scripts to run nodemon instead of node
This commit is contained in:
Robert Schäfer 2018-12-26 17:19:44 +01:00 committed by GitHub
commit 7593a094e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -117,10 +117,8 @@ Optionally you can seed the GraphQL service by executing mutations that
will write sample data to the database:
```bash
yarn run build
yarn run db:seed
# -or-
npm run build
npm run db:seed
```

View File

@ -17,8 +17,8 @@
"test:coverage": "nyc report --reporter=text-lcov > coverage.lcov",
"db:script:seed": "wait-on tcp:4001 && babel-node src/seed/seed-db.js",
"db:script:reset": "wait-on tcp:4001 && babel-node src/seed/reset-db.js",
"db:seed": "$npm_package_config_no_auth run-p --race start db:script:seed",
"db:reset": "$npm_package_config_no_auth run-p --race start db:script:reset"
"db:seed": "$npm_package_config_no_auth run-p --race dev db:script:seed",
"db:reset": "$npm_package_config_no_auth run-p --race dev db:script:reset"
},
"author": "Human Connection gGmbH",
"license": "MIT",