README
FA Module Generator (React app)
This package generates a Module in FA React applications. The module contains preconfigured
components, helpers, pages, router, services, store, tests, translations, triggers
Installation
All the following steps are already done in repo fa-react-app and any of its forks.
Add Plop to your project.
npm install --save-dev plopAdd this package to your project.
npm install --save-dev @fasolutions/moduleCreate a
plopfile.jsat the root of your project.module.exports = function (plop) { // Load plop react here plop.load('@fasolutions/module'); // You can load other plop module or define your own plop generators or helpers, here };Add
scriptinside yourpackage.json, for running plop generator"module": "plop"Run script to create Module
npm run moduleHint: Append script with Module Id to save time. Eg.
npm run module moduleid