mobile-collection-builder
v1.0.6
Published
**CXP Mobile Collection Builder**
Downloads
6
Readme
CXP Mobile Collection Builder
This is a small tool to generate a mobile ready statics collection, used for preparing hybrid widgets for the native mobile app.
Installation
npm i -g mobile-collection-builder
Usage:
Create a dependencies.json file in the fe collections root with the following structure:
{ "prebuilt": [ { "name": "<name of prebuilt module>" "path": "<path to prebuilt module in the fe collection>" } ], "src": [ { "name": "<name of ES6 module to be built>", "path": "<path to ES6 module to be built in the fe collection>" } ] }
- you can find an example in the tool's sources
navigate to fe collections root
execute
mcb [-c, --package-collection] [-m, --package-mobile]
Options:
By default, executing just mcb will copy all files/folders in the dependencies.json to a ./collection-mobile in the root of the project
-c, --package-collection - run bb-package project on the copied files
-m, --package-mobile - run bb-package cxp-statics on the package.zip generated by -c