【文件属性】:
文件名称:cloud-functions-typescript-template:Google Cloud Functions的TypeScript模板
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-11 16:00:44
nodejs typescript functions gcp cloudfunctions
云功能打字稿模板
cloud-functions-typescript-template是使用TypeScript的Google Cloud Functions的基础项目。 此项目从一开始就包含可能经常使用的工具和配置文件(例如,测试工具和Lint)。 如果有推荐的工具和配置文件,请随时提交“拉取请求”或“问题”。
先决条件
已安装npm,tsc,gcloud命令
(alpha)安装
$ npm install google-cloud-functions-typescript
$ npx create-project your-directory
在package.json中编辑配置
"config": {
"function_name": "Your function name, it must match the name of export function in index.
【文件预览】:
cloud-functions-typescript-template-master
----.gitignore(946B)
----functions()
--------.gitkeep(0B)
----package.json(2KB)
----tslint.json(2KB)
----cli.js(1KB)
----package-lock.json(89KB)
----src()
--------index.ts(240B)
----README-ja.md(1007B)
----CONTRIBUTING.md(482B)
----LICENSE(1KB)
----tsconfig.json(619B)
----.gcloudignore(530B)
----.github()
--------workflows()
----README.md(1KB)
----CONTRIBUTING-ja.md(691B)
----renovate.json(41B)
----test()
--------test_helloworld.ts(598B)
网友评论
相关文章
- google-cloud-functions-python:Google Cloud Functions Python运行时演示
- google-cloud-functions-environment-variables:Google Cloud Functions环境变量演示
- firebase-functions-typescript-starter:在TypeScript中创建和测试Firebase Cloud Functions
- google-cloud-build-slack:使用Google Cloud Functions的Google Cloud Container Builder的松弛集成