Skip to content

Commit

Permalink
add seeddata-prod script to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonjwhe committed Apr 13, 2024
1 parent d0dbc92 commit 0d5660b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ To generate seed data, in the terminal in the backend directory, you must first
run:

```
npm run utils/seedData.js [--prod]
npm run seeddata
```
or
```
npm run seeddata-prod
```

Note that this step is not optional due to the fact we need to inject wato cash's id as it is a special case for a funding item. If you pass in --prod, it will only create the wato cash fund, and no dummy data will be created.
Note that this step is not optional due to the fact we need to inject wato cash's id as it is a special case for a funding item. The -prod version will only create the wato cash fund, and no dummy data will be created.

---

Expand Down
3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "server.js",
"scripts": {
"seeddata": "node utils/seedData.js"
"seeddata": "node utils/seedData.js",
"seeddata-prod": "node utils/seedData.js --prod"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 0d5660b

Please sign in to comment.