@launchpadlab/lp-subsection-generator

9.0.0 • Public • Published

lp-subsection-generator

Generate subsections for react-redux and Ionic apps. Each subsection will contain components, forms, views and routes (see template folder for details).

Remember to include your generated subsection in your top-level reducer and routes files!

See the Migration Guide for information on migrating between lp-subsection-generator versions.

Prerequisites

The following programs are required in order to run the subsection generator:

  • Node: >= 12
    • Download/upgrade using nvm
  • Yarn: ^1.0.0

Client Template Usage

You can run the generate-subsection command using yarn:

> yarn generate-subsection [options] [subsection-name] [destination]

Arguments

  • subsection-name: the name of the subsection (required).
  • destination: the relative path to the directory where you'd like the subsection to be generated (optional, defaults to ./src/js/main/).

Options

  • -V, --version: the version number this utility
  • -h, --help: display help for command

Ionic Client Template Usage

You can run the generate-ionic-subsection command using yarn:

> yarn generate-ionic-subsection [options] [subsection-name] [destination]

Arguments

  • subsection-name: the name of the subsection (required).
  • destination: the relative path to the directory where you'd like the subsection to be generated (optional, defaults to ./src/js/main/).

Options

  • -V, --version: the version number this utility
  • -h, --help: display help for command

Readme

Keywords

none

Package Sidebar

Install

npm i @launchpadlab/lp-subsection-generator

Weekly Downloads

96

Version

9.0.0

License

ISC

Unpacked Size

17.6 kB

Total Files

26

Last publish

Collaborators

  • bhennes2
  • dpikt
  • lpluser
  • chawes