bblp-build:
Bundle a Backbase Launchpad static item.
INSTALL
- Install library
npm install --save-dev bblp-buildyarn add --dev bblp-build
USAGE
- Display help
bblp-build --help
- Display version
bblp-build --version ## build current item bblp-build ./bblp-build ./collection/src/path/to/my/widget
Arguments:
- [path] [./] Item to build.
Options:
- - a --all [false] Build all external dependencies.
- - t --templates [false] Bundle HTML templates into build file.
- - m --moduleId [false] Build with AMD module ID in definition.
- - o --output [./dist] Output directory path.
- - e --expand [false] Do not minify javascript & css files.
Build theme
USAGE
- Display help
bblp-build theme --help bblp-build theme ./ universal
Arguments:
- [path] [./] Theme path.
- [edition] [retail] Theme retail edition
Options:
- - A --no-assets [false] Do include assets files e.g. fonts/images.
- - o --output [./dist] Output directory path.
- - e --expand [false] Do not minify javascript & css files.
- -b, --base-path [./] Theme base path e.g. bower_components
Examples
Single item build
bblp-build
Single theme build
bblp-build theme
Collection build
Collection pom.xml
.... com.github.eirslett frontend-maven-plugin 1.0 install node and npm install-node-and-npm install v4.6.0 3.3.6 npm-install install npm install --loglevel error build install npm run build --loglevel error ...
Collection package.json
:
Collection scripts/build.js
:
This is just and example you can customize it based on the project structure.
'use strict';/*** ------------------------------------------------------------------------* Building statics using bblp-build command* requires node v4.2.x LTS argon* ------------------------------------------------------------------------*/const path = ;const sh = ; const basePath = processargv2 || '../src';const src = path path; const skip = path; const BBLP = path; let cmd = ''; let buildExitCode = 0; //optimisticsh ;ifbuildExitCode > 0 console; else console;process;