|
11 | 11 | "build": "npm run clean && NODE_ENV=production rollup --config rollup.config.js", |
12 | 12 | "clean": "rimraf dist", |
13 | 13 | "deploy": "npm run build && NODE_ENV=production firebase deploy", |
| 14 | + "emulators:export": "firebase emulators:export ./data/seed", |
| 15 | + "emulators:import": "FIRESTORE_EMULATOR_HOST=\"localhost:8080\" ts-node-script ./scripts/import", |
14 | 16 | "firestore:copy": "ts-node-script ./scripts/firestore-copy", |
15 | | - "firestore:init": "ts-node-script ./scripts/firestore-init", |
| 17 | + "firestore:init": "ts-node-script ./scripts/import", |
16 | 18 | "fix": "concurrently npm:fix:*", |
17 | 19 | "fix:eslint": "eslint . --ext .ts --ext .js --fix", |
18 | 20 | "fix:prettier": "prettier . --write", |
|
23 | 25 | "lint:prettier": "prettier --check .", |
24 | 26 | "lint:stylelint": "stylelint \"src/components/**/*.ts\" \"src/styles/**/*.ts\"", |
25 | 27 | "postinstall": "npm run install:functions", |
| 28 | + "seed": "firebase emulators:exec \"./scripts/validate-seed.sh\"", |
26 | 29 | "serve": "NODE_ENV=production concurrently --kill-others npm:start:*", |
27 | 30 | "start": "NODE_ENV=development concurrently --kill-others npm:start:*", |
28 | | - "start:emulators": "firebase emulators:start", |
| 31 | + "start:emulators": "firebase emulators:start --import data/seed", |
29 | 32 | "start:functions": "npm --prefix functions start", |
30 | 33 | "start:rollup": "rollup --config rollup.config.js --watch", |
31 | 34 | "test": "jest", |
|
0 commit comments