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
}
]
}
I like to get the config written first as that will drive the design. What are your thoughts on: