Skip to content

Instantly share code, notes, and snippets.

@ninetails
Created April 3, 2019 19:56
Show Gist options
  • Save ninetails/26aa807701551d9552a7b59559523bd9 to your computer and use it in GitHub Desktop.
Save ninetails/26aa807701551d9552a7b59559523bd9 to your computer and use it in GitHub Desktop.
Google Cloud Functions Emulator with Node.js
{
(...)
"scripts": {
"functions": "source $HOME/.nvm/nvm.sh; nvm exec lts/boron npx @google-cloud/functions-emulator",
"functions:deploy": "$npm_execpath run functions -- deploy",
"functions:deploy:hello": "$npm_execpath run functions:deploy -- hello --trigger-http",
"functions:status": "$npm_execpath run functions -- status",
"functions:start": "$npm_execpath run functions -- start",
"functions:stop": "$npm_execpath run functions -- stop"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment