Skip to content

Thoughts on config #1

Description

@BryanCrotaz

I like to get the config written first as that will drive the design. What are your thoughts on:

export default function () {
    return [
        {
            type: "build" // maps to a registered type BuildDeployTask
        },
        {
            name: "upload-html", // used to read output data
            comment: "Upload index.html to S3", // logged to console
            type: "s3/upload",  // maps to a registered type S3/UploadDeployTask
            glob: "*.html",
            headers: ['Content-Type:text/html']
        },
        {
            comment: "Configure Cloudfront", 
            type: "cloudfront/update-distribution",
            origin: get("upload-html.bucketname") // get data from output POJO of previous task
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions