-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
78 lines (78 loc) · 2.93 KB
/
package.json
File metadata and controls
78 lines (78 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "@common/firebase",
"description": "Cloud Functions for Firebase",
"scripts": {
"build": "rimraf ./functions/dist/**/* && tsc -p tsconfig.json",
"build:watch": "rimraf ./functions/dist/**/* && tsc -p tsconfig.json --watch",
"lint": "eslint .",
"clean": "find ./ -name '*.log' -delete",
"logs": "firebase functions:log",
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
"start": "cross-env NODE_ENV=dev firebase emulators:start --import ./firestore/data",
"start:clean": "cross-env NODE_ENV=dev firebase emulators:start",
"start:testing": "cross-env NODE_ENV=test firebase emulators:start",
"deploy:staging": "yarn use:staging && ./env/env.sh -check && firebase deploy --only functions",
"deploy:production": "yarn use:production && ./env/env.sh -check && firebase deploy --only functions",
"emulator": "firebase emulators:start --import ./firestore/data",
"emulator:functions": "open -a Safari http://localhost:4000 && firebase emulators:start --only functions",
"data:backup": "./firestore/data.sh -backup",
"data:update": "./firestore/data.sh -update",
"use:ci": "./env/env.sh -dev && firebase use staging",
"use:dev": "./env/env.sh -dev",
"use:staging": "firebase use staging && ./env/env.sh -stg",
"use:production": "firebase use production && ./env/env.sh -prod",
"ci:test": "yarn build && cross-env NODE_ENV=test firebase emulators:exec 'yarn test'",
"ci:setup": "yarn use:ci",
"test": "jest",
"test:emulators": "cross-env NODE_ENV=test firebase emulators:exec 'yarn test'",
"test:watch": "jest --watch",
"precommit": "lint-staged && yarn test",
"deploy:indexes": "yarn use:staging && firebase deploy -only firestore:indexes",
"deploy:indexes:prod": "yarn use:production && firebase deploy -only firestore:indexes"
},
"engines": {
"node": "12"
},
"devDependencies": {
"@firebase/rules-unit-testing": "^1.0.3",
"@types/express": "^4.17.8",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.7",
"@types/shelljs": "^0.8.8",
"@types/sinon": "^9.0.5",
"@types/supertest": "^2.0.10",
"@types/yup": "^0.29.9",
"@typescript-eslint/eslint-plugin": "^4.1.0",
"@typescript-eslint/parser": "^4.1.0",
"axios-mock-adapter": "^1.19.0",
"babel-jest": "^26.3.0",
"concurrently": "^5.3.0",
"eslint": "^7.8.1",
"eslint-plugin-promise": "^4.2.1",
"firebase-functions-test": "^0.2.3",
"husky": "^4.2.5",
"jest": "^26.6.3",
"jest-coverage-badges": "^1.1.2",
"lint-staged": "^10.2.11",
"module-alias": "^2.2.2",
"nodemon": "^2.0.4",
"sinon": "^9.2.3",
"supertest": "^4.0.2",
"ts-jest": "^26.4.4",
"typescript": "^4.0.5"
},
"private": true,
"workspaces": [
"functions"
],
"dependencies": {
"crossenv": "^0.0.2-security",
"shelljs": "^0.8.4"
},
"husky": {
"hooks": {
"pre-commit": "yarn build"
}
}
}