JSPM

@ziuchen/tencent-scf-utils

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q14380F
  • License MIT

A simple tool for deploying Tencent SCF

Package Exports

  • @ziuchen/tencent-scf-utils
  • @ziuchen/tencent-scf-utils/dist/index.js
  • @ziuchen/tencent-scf-utils/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ziuchen/tencent-scf-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ziuchen/tencent-scf-utils

A simple tool for deploying Tencent SCF

Install

npm i @ziuchen/tencent-scf-utils -D

Usage

tscf -h

Best Practice

tscf will load config from enviroment variables below:

TENCENTCLOUD_SCF_FUNCTION_NAME=xxxxxxxxxxxxxxxxxxxx
TENCENTCLOUD_SCF_SECRET_ID=xxxxxxxxxxxxxxxxxxxx
TENCENTCLOUD_SCF_SECRET_KEY=xxxxxxxxxxxxxxxxxxxx

Using 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 -g

In other package, run this to link tencent-scf-utils locally.

pnpm link -g tencent-scf-utils

After 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