Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
/ cloudfunc Public archive

a tested TypeScript starter function for GCP/Firebase

License

Notifications You must be signed in to change notification settings

damienstanton/cloudfunc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATION NOTICE

The functionality provided by this tool is now available in the firebase-tools CLI. Go there instead!

⛅️ CloudFunc

a TypeScript starter function for Firebase/Google Compute Platform.

Build Status tested with jest

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

donation

© 2017 Damien Stanton

See LICENSE for details.

Releases

No releases published

Packages

No packages published