mobile-collection-builder

1.0.6 • Public • Published

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:

  1. 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
  2. navigate to fe collections root

  3. 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

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mobile-collection-builder

    Weekly Downloads

    1

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    13.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • hovrcat