TODO: this is work-in-progress
entryPoint: Absolute path to entry point for main Javascript bundle. This option is required.assetContext: HTTP path for the entry pointìndex.html, including trailing slash, not includingbaseUrl. Defaults to''.embedSupport: Set to true to generate embeds codes page and also include scripts that support embedding to the distribution.flow: Flow id of flow in which to send notificationsmaxAge: The maxAge for HTTP cache headers for assets with rev urlsbucket: The s3 bucket in which to deploybaseUrl: The base url on the server, including trailing slash, not including path. e.g.http://www.example.com/commit: Git commit hashbranch: Git branch nameproject: GitHub project nameorg: GitHub organization name,embedCodes: Set totrueto generateembed-codes.htmlalong boostrappingindex.htmlembedCodesHtmlTemplate: Absolute path to page template forembed-codes.htmlpage. Defaults to (this)[https://github.com/lucified/lucify-component-builder/blob/master/src/www/embed-codes.hbs] template.
pageDef: object containing page metadata for entry point. The following attributes are recognized:title: Page titledescription: Description metadata for social sharing, etc,ogType: Open graph typetwitterImage: Filename for twitter card imageopenGraphImage: Filename for open graph (Facebook) imageschemaImage: 'Filename for schema imagegoogleAds: Set totrueto enable script src snippet inindex.htmlfor Google ads. Defaults totrue. TODO: should be Google Ads Id instead of boolean.googleAnalytics: Set totrueto enable script src snippet inindex.htmlfor Google Analytics. Defaults totrue. TODO: should be Google Analytics Id instead of boolean.riveted: Set totrueto enable script src snippet inindex.htmlfor Riveted.js. Defaults totrue.iframeResize: Set totrueto bundle IFrame resizing code into bootstrapping index.html. Defaults totrueindexHtmlTemplate: Absolute path to handlebars template forindex.html. Defaults to this template.externalStyles: Set totrueto get external stylesheets. This option is only checked from the firstpageDefelement and controls all of them.
pageDefs: list of objects containing page metadata for all entry points. For each object, the same attributes as allowed forpageDefare recognized. They are optional. However, apathattribute is mandatory. It is the page's web path belowassetContext.
Most options have defaults. Some of them depend on LUCIFY_ENV. See src/js/deploy-options.js for details.
If GITHUB_TOKEN is defined, will notify of new deployment with GitHub Deployment API.
If FLOW_TOKEN is defined, will use it to notify of successfull deployment to Flowdock.
The build should have a set of AWS environment variables and/or credentials specified, suitable for deploying to bucket.
They can be defined in multiple ways
(1) AWS_PROFILE and ~/.aws/credentials
(2) AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID
(3) Optionally, you can define OVERRIDE_AWS_SECRET_ACCESS_KEY and OVERRIDE_AWS_ACCESS_KEY_ID
(4) Also, ENCRYPTED_AWS_SECRET_ACCESS_KEY is available. When this is used, LUCIFY_ENC_PASS should be defined, so that it can be decrypted.