1.0.16 • Published 5 years ago
domain-auth-ui v1.0.16
Domain Auth Ui
Basically brings all the fe-co-auth-ui-core
extension packages from npm together, tests them, bundles them and pushes the bundles to an S3 bucket from a manifest file.
The manifest file
The manifest file lists all the extending packages and their versions and other metadata. To add a new package, add one more item to the packages
array in the file specifying the following.
{
"name": "<Name of the brand. e.g. 'mydesktop'>",
"npmPackageName": "<Npm package name of the extending brand. e.g. '@domain-group/fe-co-auth-ui-mydesktop'>",
"npmPackageVersion": "<Version of the npm package. e.g. '^0.0.2'>",
"theme": "<theme to be used by the brand. e.g. 'mydesktop'"
}
Scripts
bootstrap
: Createsfe-build
friendly folder structure for each brand out of the manifest file inside/packages
directory.--clean
option removes all pacakges and re-creates.install:packages
: Installs package depenedncies inside each brand folder. This runs postbootstrap
.test
: Runs the core data tests exposed byfe-co-auth-ui-core
package on each brand folder.bundle
: Runsfe-build build:bundle
on each brand folder generating client bundles for each brand.dist
: Takes all the bundles outputs from each brand folder and saves them in a rootdist
folder grouped by brand name. This runs postbundle
.pushToS3
: Takes everything inside the rootdist
folder and pushes them to S3domain-static/domain-auth/fe-dist/{version}/
whereversion
is thepackage.json
version value. Throws if there already is a same version in the s3 bucket.