From bb0f496e19fb6f5793aa33ce001e018a01571423 Mon Sep 17 00:00:00 2001 From: Brennan Date: Sat, 7 Oct 2023 00:41:19 +0800 Subject: [PATCH] feat: add persistence to firebase emulator --- .gitignore | 5 ++++- package.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8b30be72..c5bee94f 100644 --- a/.gitignore +++ b/.gitignore @@ -65,4 +65,7 @@ node_modules/ # dotenv environment variables file .env -local_batch_jobs \ No newline at end of file +local_batch_jobs + +# local firebase emulator data +local-data \ No newline at end of file diff --git a/package.json b/package.json index d2828ddb..614c739a 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "googleapis": "^105.0.0" }, "scripts": { - "lint": "eslint . --ext js,jsx,ts,tsx --fix" + "lint": "eslint . --ext js,jsx,ts,tsx --fix", + "serve": "firebase emulators:start --import ./local-data --export-on-exit ./local-data" } }