1.0.6 • Published 5 years ago

mobile-collection-builder v1.0.6

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago