1- # Google Cloud Functions TypeScript starter project
1+ # Google (Cloud Platform) Cloud Functions TypeScript starter project
22
33<!-- TOC -->
44
55- [ Clone project] ( #clone-project )
6- - [ Build project from command-line] ( #build-project-from-command-line )
7- - [ Deploy project to Cloud Functions Local Emulator from command-line] ( #deploy-project-to-cloud-functions-local-emulator-from-command-line )
6+ - [ Build project (command-line)] ( #build-project-command-line )
7+ - [ Deploy project to Cloud Functions Local Emulator (command-line)] ( #deploy-project-to-cloud-functions-local-emulator-command-line )
8+ - [ Build bundle to deploy to Google Cloud Platform (command-line)] ( #build-bundle-to-deploy-to-google-cloud-platform-command-line )
89
910<!-- /TOC -->
1011
@@ -28,7 +29,7 @@ Optional. You can open project in Visual Studio Code to to build and deploy proj
2829code .
2930```
3031
31- ## Build project from command-line
32+ ## Build project ( command-line)
3233
3334If you prefer command-line interface instead of Visual Studio Code than use the next commands to build project.
3435
4647
4748File ` index.js ` is generated and is ready to deploy to ** Cloud Functions**
4849
49- ## Deploy project to Cloud Functions Local Emulator from command-line
50+ ## Deploy project to Cloud Functions Local Emulator ( command-line)
5051
5152If you prefer command-line interface instead of Visual Studio Code than use the next commands to deploy project.
5253
@@ -71,3 +72,18 @@ npm run deploy-local
7172Open [ helloWorld] ( http://localhost:8010/amsokol-me/us-central1/helloWorld ) link in browser to see results.
7273
7374See [ Cloud Functions Local Emulator] ( https://cloud.google.com/functions/docs/emulator ) for more details.
75+
76+ ## Build bundle to deploy to Google Cloud Platform (command-line)
77+
78+ If you prefer command-line interface instead of Visual Studio Code than use the next commands to create zip archive for deployment.
79+
80+ For Windows using PowerShell:
81+
82+ ``` bash
83+ npm run package-zip(windows)
84+ ```
85+
86+ It creates ` helloWorld.zip ` that includes ` index.js ` , ` package.json ` , ` settings.json ` files.
87+ ` helloWorld.zip ` is ready to be deployed to ** Google Cloud Platform** .
88+
89+ See [ Deploying from Your Local Machine] ( https://cloud.google.com/functions/docs/deploying/filesystem ) for more details.
0 commit comments