From 0d5660b8240e9fc9e7f8294ee39a6e1cfdd817f2 Mon Sep 17 00:00:00 2001 From: Anson He Date: Sat, 13 Apr 2024 16:58:47 -0400 Subject: [PATCH] add seeddata-prod script to package.json --- README.md | 8 ++++++-- backend/package.json | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 03502c3..42d8f72 100644 --- a/README.md +++ b/README.md @@ -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. --- diff --git a/backend/package.json b/backend/package.json index b16f6f9..3c17739 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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": "",