JSPM

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

S3 Asset copy for serverless

Package Exports

  • serverless-s3-deploy

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 (serverless-s3-deploy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

serverless-s3-deploy

Plugin for serverless to deploy files to a S3 Bucket

Usage

Add to your serverless.yml: plugins: - serverless-s3-deploy

custom:
    assets:
        bucket: my-bucket
        files:
            - source: ../assets/
              globs: **/*.css
            - source: ../app/
              globs: 
                - **/*.js
                - **/*.map

You can specify source relative to the current directory.

Each source has its own list of globs, which can be either a single glob, or a list of globs.

Now you can upload all of these assets to your bucket by running:

$ sls s3delpoy