Skip to content

Instantly share code, notes, and snippets.

@grant
Last active December 19, 2021 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grant/5219728fbcce9ac963be59a7b5db099e to your computer and use it in GitHub Desktop.
Save grant/5219728fbcce9ac963be59a7b5db099e to your computer and use it in GitHub Desktop.
Hot Reload Node Functions
{
"main": "index.js",
"dependencies": {
"@google-cloud/functions-framework": "^2.1.0"
},
"watch": {
"start": "*.js"
},
"devDependencies": {
"npm-watch": "^0.11.0"
},
"scripts": {
"watch": "npm-watch start",
"start": "npx @google-cloud/functions-framework --target=helloWorld"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment