Skip to content

Package .arc apps for deployment with Cloudformation

License

Notifications You must be signed in to change notification settings

architect/package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 20, 2025
2cbea0e · Mar 20, 2025
Apr 29, 2024
Apr 29, 2024
Mar 20, 2025
Mar 20, 2025
Feb 2, 2023
Nov 20, 2019
Mar 20, 2020
May 29, 2019
Mar 20, 2025
Apr 29, 2024
Mar 20, 2025
Feb 16, 2022

Repository files navigation

@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)