JSPM

@architect/deploy

1.9.0-RC.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1023
  • Score
    100M100P100Q115429F
  • License Apache-2.0

deploys @architect projects

Package Exports

  • @architect/deploy
  • @architect/deploy/cli
  • @architect/deploy/src/utils/pause-sandbox

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

Readme

@architect/deploy

Architect serverless framework module for deploying applications to cloud infrastructure

GitHub CI status

Installation

npm i @architect/deploy
let deploy = require('@architect/deploy')

Requirements

You need to have the sam command-line utility available on your $PATH. Check out AWS' docs for instructions on how to install this.

API

deploy.dirty(callback)

Deploys Function code to the staging environment by ommitting CloudFormation and messing with Lambda infrastructure directly. There's a reason we called this dirty. Hey, it works, and it's much faster.

deploy.sam({verbose, production}, callback)

Deploys all infrastructure associated to your @architect app.

Set verbose to truthy to enable chatty mode. By default will only push to the staging environment unless production is truthy.

deploy.static({bucket, credentials, fingerprint, prefix, prune, region, verbose, production}, callback)

All parameters are optional.

Pushes static assets from the public/ folder of @architect apps to S3, as defined by your @architect app's .arc file. Respects fingerprint (true or external), prefix, prune, and ignore params or @static pragma directives (more information available on the @static arc guide).

By default will only publish to the staging environment unless production is truthy. Set verbose to truthy to enable chatty mode.