Last active
March 19, 2019 15:34
-
-
Save jasonbyrne/554f663f69a10a4deeff448987f175f0 to your computer and use it in GitHub Desktop.
Firebase Functions Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "functions", | |
"scripts": { | |
"lint": "tslint --project tsconfig.json", | |
"build": "tsc", | |
"serve": "npm run build && firebase serve --only functions", | |
"shell": "npm run build && firebase functions:shell", | |
"start": "npm run shell", | |
"deploy": "firebase deploy --only functions", | |
"logs": "firebase functions:log" | |
}, | |
"main": "lib/index.js", | |
"engines": { | |
"node": "8" | |
}, | |
"dependencies": { | |
"body-parser": "^1.18.3", | |
"cors": "^2.8.5", | |
"express": "^4.16.4", | |
"firebase-admin": "~6.0.0", | |
"firebase-functions": "^2.1.0" | |
}, | |
"devDependencies": { | |
"tslint": "~5.8.0", | |
"typescript": "~2.8.3" | |
}, | |
"private": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"lib": [ | |
"es2017", | |
"dom" | |
], | |
"module": "commonjs", | |
"noImplicitReturns": true, | |
"outDir": "lib", | |
"sourceMap": true, | |
"target": "es2017", | |
"typeRoots": [ | |
"./functions/node_modules/@types" | |
] | |
}, | |
"compileOnSave": true, | |
"experimentalAsyncFunctions": true, | |
"include": [ | |
"src" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment