1.1.1 • Published 8 months ago
@ziuchen/tencent-scf-utils v1.1.1
@ziuchen/tencent-scf-utils
A simple tool for deploying Tencent SCF
Install
npm i @ziuchen/tencent-scf-utils -DUsage
tscf -hBest Practice
tscf will load config from enviroment variables below:
TENCENTCLOUD_SCF_FUNCTION_NAME=xxxxxxxxxxxxxxxxxxxx
TENCENTCLOUD_SCF_SECRET_ID=xxxxxxxxxxxxxxxxxxxx
TENCENTCLOUD_SCF_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxUsing with @dotenvx/dotenvx:
{
"scripts": {
"deploy:scf": "dotenvx run -- tscf deploy ./dist"
}
}dotenvx will load enviroment variables from .env file for tencent-scf-utils.
Development
This link tencent-scf-utils to global.
pnpm link -gIn other package, run this to link tencent-scf-utils locally.
pnpm link -g tencent-scf-utilsAfter modified code, you should rerun these command to make changes apply.
Publish
pnpm login --registry=https://registry.npmjs.org/pnpm publish --access=public --no-git-checks