manifold/functions/package.json

45 lines
1.9 KiB
JSON
Raw Normal View History

2021-12-10 18:10:30 +00:00
{
"name": "functions",
"version": "1.0.0",
"config": {
"firestore": "dev-mantic-markets.appspot.com"
},
2021-12-10 18:10:30 +00:00
"scripts": {
"build": "yarn compile && rm -rf dist && mkdir -p dist/functions && cp -R ../common/lib dist/common && cp -R lib/src dist/functions/src && cp ../yarn.lock dist && cp package.json dist && cp .env dist",
"compile": "tsc -b",
"watch": "tsc -w",
2021-12-19 22:08:25 +00:00
"shell": "yarn build && firebase functions:shell",
"start": "yarn shell",
2021-12-10 18:10:30 +00:00
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log",
"serve": "firebase use dev && yarn build && firebase emulators:start --only functions,firestore --import=./firestore_export",
"db:update-local-from-remote": "yarn db:backup-remote && gsutil rsync -r gs://$npm_package_config_firestore/firestore_export ./firestore_export",
"db:backup-local": "firebase emulators:export --force ./firestore_export",
"db:rename-remote-backup-folder": "gsutil mv gs://$npm_package_config_firestore/firestore_export gs://$npm_package_config_firestore/firestore_export_$(date +%d-%m-%Y-%H-%M)",
"db:backup-remote": "yarn db:rename-remote-backup-folder && gcloud firestore export gs://$npm_package_config_firestore/firestore_export/",
"verify": "(cd .. && yarn verify)",
"verify:dir": "npx eslint . --max-warnings 0; tsc -b -v --pretty"
2021-12-10 18:10:30 +00:00
},
"main": "functions/src/index.js",
2021-12-10 18:10:30 +00:00
"dependencies": {
"@amplitude/node": "1.10.0",
"@google-cloud/functions-framework": "3.1.2",
"@tiptap/core": "2.0.0-beta.181",
"@tiptap/extension-image": "2.0.0-beta.30",
"@tiptap/starter-kit": "2.0.0-beta.190",
2021-12-11 00:06:17 +00:00
"firebase-admin": "10.0.0",
"firebase-functions": "3.21.2",
"lodash": "4.17.21",
"mailgun-js": "0.22.0",
"module-alias": "2.2.2",
"stripe": "8.194.0",
"zod": "3.17.2"
2021-12-10 18:10:30 +00:00
},
"devDependencies": {
"@types/mailgun-js": "0.22.12",
"@types/module-alias": "2.0.1",
"firebase-functions-test": "0.3.3"
2021-12-10 18:10:30 +00:00
},
"private": true
}