The functionality provided by this tool is now available in the firebase-tools CLI. Go there instead!
a TypeScript starter function for Firebase/Google Compute Platform.
Why?
I found that getting started with a TS function in GCF was more difficult than it should be. I was able to piece together a working example based on the official repo and a couple blog posts. This ia an attempt at a better kit that I can reach for anytime I want to quickly get started on a new function.
Features:
- No global dependencies needed. Just run
yarn install
in the functions directory and you're ready. - CI tests against a real-life deployed instance ensure the starter kit currently works
Commands:
From the functions
directory:
Compile once:
$ yarn build
Hot reload:
$ yarn watch
Run tests:
$ yarn test
Deploy to GCF:
$ yarn deploy
© 2017 Damien Stanton
See LICENSE for details.