static-deploy

1.0.9 • Public • Published

deploy to public static bucket

conventionally we build our production code into dist directory and then deploy to public clound storage for usage of CDN.

s3 deploay

In your package.json

S_DIR is optional and default dist

{
  "scripts": {
    "deploy":
      "S_VENDOR=s3 S_REGION=region S_BUCKET=bucket S_AK=ak S_SK=sk S_DIR=dist static-deploy"
  }
}

alioss deploay

In your package.json

S_DIR is optional and default dist

{
  "scripts": {
    "deploy":
      "S_VENDOR=alioss S_REGION=region S_BUCKET=bucket S_AK=ak S_SK=sk S_DIR=dist static-deploy"
  }
}

Package Sidebar

Install

npm i static-deploy

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

4.5 kB

Total Files

11

Last publish

Collaborators

  • corococos