Files
nirvana/packages/serverless/functions/package.json
T

36 lines
1.2 KiB
JSON

{
"name": "@nirvana/functions",
"version": "1.0.0",
"scripts": {
"lint": "eslint --ext .js,.ts .",
"build": "yarn lint && tsc",
"serve": "yarn build && firebase functions:config:get > .runtimeconfig.json && firebase emulators:start --only functions",
"shell": "yarn build && firebase functions:shell",
"start": "yarn shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log",
"hotReload": "tsc --watch",
"copyModels": "cp -r ../../web/models ./models",
"env": "test -f env.json && firebase functions:config:unset env && firebase functions:config:set env=\"$(cat env.json)\" || echo \"Please add the file env.json before deploy.\""
},
"main": "lib/index.js",
"dependencies": {
"@sendgrid/mail": "^7.6.0",
"@types/algoliasearch": "^4.0.0",
"agora-access-token": "^2.0.4",
"algoliasearch": "^4.12.1",
"firebase-admin": "^9.8.0",
"firebase-functions": "^3.14.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.8.0",
"eslint": "^7.6.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-import": "^2.22.0",
"firebase-functions-test": "^0.2.0",
"typescript": "^3.8.0"
},
"private": true
}