Giter Site home page Giter Site logo

bb-customize3's Introduction

NAME

bb-customize3 - Generate a new Extended Widget

SYNOPSIS

bb-customize3 [--help] [-v|--version]
bb-customize3 <source-widget>
bb-customize3 <source-widget> --title target-widget --module target-module
bb-customize3 <source-widget> --title target-widget --module target-module --enable-slots
bb-customize3 --list

USAGE

Usage: bb-customize3 [options] <file ...>

Options:
  -V, --version                            output the version number
  -t, --title <name>                       Widget Title (eg. Custom Product Summary)
  -m, --module <module>                    Module Name (eg. product-summary-extended)
  -s, --enable-slots                       Enable Extension Slots (commented by default)
  -d, --dist-path <path/to/compiled/libs>  Path to source widgets (default: "./node_modules/@backbase")
  -p, --widget-name-pattern <sub-string>   Filter out items (default: "-widget-ang")
  -l, --list                               List all available widgets
  -h, --help                               output usage information

DESCRIPTION

Running this command wil generate a new Extended Widget that will copy from the specified Widget the following:

  • Preferences
  • Input/Outputs
  • Extension slot HTML

Important: A lot of Widgets leverage a 'Common' library, make sure to include that library as a Angular Module dependency manually, eg: TransactionsCommonModule ProductSummaryCommon

The tool will ask you first:

  1. Which Widget you would like to Extend (select from list)
  2. The name of the New Component (eg. Extended Product Summary Widget)
  3. The name of the New Widget (eg. product-summary-widget-extended)

EXAMPLES

List all available widgets

Lists all widget from default node_modules directory:

  $ bb-customize3 --list

Enable Extension slots

All extension slots templates will be uncommented. This flag could be usefull for testing if OOB Extension slots are working.

  $ bb-customize3 --enable-slots

List widgets in the dist/libs directory

All extension slots templates will be uncommented. This flag could be usefull for testing if OOB Extension slots are working.

  $ npm run package:libs
  $ bb-customize3 --list --dist-path dist/libs --widget-name-pattern -widget

DISCLAIMER

This is a community supported tool, and is not affiliated or maintained by any commercial company. Usage is at your own risk!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.