@architect/package

9.0.2 • Public • Published

@architect/package GitHub CI status

@architect/package packages @architect projects as AWS::Serverless-compatible JSON. Converts Architect projects into a AWS Serverless Application Model (SAM)-compatible format.

Install

npm i @architect/package

API

All of this module's methods take as input an @architect/inventory-parsed Architect project.

pkg(arc)

Example Usage

let inventory = require('@architect/inventory')
let pkg = require('@architect/package')

// fake out an .arc file as a string
let arcString = `
@app
mybasicapp

@http
get /
`

// export as sam
let inv = await inventory({ rawArc: arcString, deployStage: 'staging' })
let sam = pkg(inv)
console.log(sam)

Dependencies (2)

Dev Dependencies (10)

Package Sidebar

Install

npm i @architect/package

Weekly Downloads

4,321

Version

9.0.2

License

Apache-2.0

Unpacked Size

69.1 kB

Total Files

30

Last publish

Collaborators

  • brianleroux
  • dam
  • kborchers
  • ryanblock
  • architectci
  • filmaj