Skip to content

Commit a1d1af1

Browse files
committed
chore: release v0.0.1
1 parent 3964862 commit a1d1af1

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ $ touch serverless.yml
6666
```yml
6767
# serverless.yml
6868

69-
component: flask
69+
component: flask
7070
name: flashDemo
7171
org: orgDemo
72-
app: appDemo
73-
stage: dev
72+
app: appDemo
73+
stage: dev
7474

7575
inputs:
7676
src:

docs/configure.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -73,35 +73,34 @@ inputs:
7373
- xxx
7474
```
7575
76-
7776
## 配置描述
7877
7978
主要的参数
8079
81-
| 参数名称 | 是否必选 | 默认值 | 描述 |
82-
| ------------------------------------ | :------: | :-------------: | :------------------------------------------------------------------ |
83-
| runtime | 否 | Python3.6 | 执行环境, 目前支持: Python3.x |
84-
| region | 否 | ap-guangzhou | 项目部署所在区域,默认广州区 |
85-
| functionName | 否 | | 云函数名称 |
86-
| serviceName | 否 | | API 网关服务名称, 默认创建一个新的服务名称 |
87-
| serviceId | 否 | | API 网关服务 ID,如果存在将使用这个 API 网关服务 |
88-
| src | 否 | `process.cwd()` | 默认为当前目录, 如果是对象, 配置参数参考 [执行目录](#执行目录) |
89-
| layers | 否 | | 云函数绑定的 layer, 配置参数参考 [层配置](#层配置) |
90-
| exclude | 否 | | 不包含的文件 |
91-
| include | 否 | | 包含的文件, 如果是相对路径,是相对于 `serverless.yml`的路径 |
92-
| [functionConf](#函数配置) | 否 | | 函数配置 |
93-
| [apigatewayConf](#API-网关配置) | 否 | | API 网关配置 |
94-
| [cloudDNSConf](#DNS-配置) | 否 | | DNS 配置 |
95-
| [Region special config](#指定区配置) | 否 | | 指定区配置 |
80+
| 参数名称 | 是否必选 | 默认值 | 描述 |
81+
| ------------------------------------ | :------: | :-------------: | :------------------------------------------------------------- |
82+
| runtime | 否 | Python3.6 | 执行环境, 目前支持: Python3.x |
83+
| region | 否 | ap-guangzhou | 项目部署所在区域,默认广州区 |
84+
| functionName | 否 | | 云函数名称 |
85+
| serviceName | 否 | | API 网关服务名称, 默认创建一个新的服务名称 |
86+
| serviceId | 否 | | API 网关服务 ID,如果存在将使用这个 API 网关服务 |
87+
| src | 否 | `process.cwd()` | 默认为当前目录, 如果是对象, 配置参数参考 [执行目录](#执行目录) |
88+
| layers | 否 | | 云函数绑定的 layer, 配置参数参考 [层配置](#层配置) |
89+
| exclude | 否 | | 不包含的文件 |
90+
| include | 否 | | 包含的文件, 如果是相对路径,是相对于 `serverless.yml`的路径 |
91+
| [functionConf](#函数配置) | 否 | | 函数配置 |
92+
| [apigatewayConf](#API-网关配置) | 否 | | API 网关配置 |
93+
| [cloudDNSConf](#DNS-配置) | 否 | | DNS 配置 |
94+
| [Region special config](#指定区配置) | 否 | | 指定区配置 |
9695

9796
## 执行目录
9897

99-
| 参数名称 | 是否必选 | 类型 | 默认值 | 描述 |
100-
|---------|------|-----------------|-----|------------------------------------------------------------------------------------------------------------------------------|
101-
| src | 否 | String | | 代码路径。与 object 不能同时存在。 |
102-
| exclude | 否 | Array of String | | 不包含的文件或路径, 遵守 [glob 语法](https://github.com/isaacs/node-glob) |
103-
| bucket | 否 | String | | bucket 名称。如果配置了 src,表示部署 src 的代码并压缩成 zip 后上传到 bucket-appid 对应的存储桶中;如果配置了 object,表示获取 bucket-appid 对应存储桶中 object 对应的代码进行部署。 |
104-
| object | 否 | String | | 部署的代码在存储桶中的路径。 | |
98+
| 参数名称 | 是否必选 | 类型 | 默认值 | 描述 |
99+
| -------- | -------- | --------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
100+
| src | 否 | String | | 代码路径。与 object 不能同时存在。 |
101+
| exclude | 否 | Array of String | | 不包含的文件或路径, 遵守 [glob 语法](https://github.com/isaacs/node-glob) |
102+
| bucket | 否 | String | | bucket 名称。如果配置了 src,表示部署 src 的代码并压缩成 zip 后上传到 bucket-appid 对应的存储桶中;如果配置了 object,表示获取 bucket-appid 对应存储桶中 object 对应的代码进行部署。 |
103+
| object | 否 | String | | 部署的代码在存储桶中的路径。 | |
105104

106105
## 层配置
107106

example/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: flashDemo # (required) name of your flash component instance.
66

77
inputs:
88
src:
9+
# TODO: 安装python项目依赖到项目当前目录
910
hook: 'pip3 install -r requirements.txt -t ./'
1011
dist: ./ # (optional) path to the source folder. default is a hello world app.
1112
exclude:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@serverless/flask",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"main": "src/serverless.js",
55
"publishConfig": {
66
"access": "public"

serverless.component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: flask
2-
version: dev
2+
version: 0.0.1
33
author: Tencent Cloud, Inc
44
org: Tencent Cloud, Inc
55
description: Deploys a serverless Flask application onto Tencent SCF and Tencent APIGateway.

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"dependencies": {
1414
"download": "^8.0.0",
15-
"tencent-component-toolkit": "^1.11.2",
15+
"tencent-component-toolkit": "^1.11.4",
1616
"type": "^2.0.0"
1717
}
1818
}

0 commit comments

Comments
 (0)