Commandline tool to scaffold a new user interface component
Prerequisites
- latest version of nodejs
- latest version of npm
- optional (Install will succeed without this, too):
@pubcore/node-composition installed and context_path is added in config.json
It will create/setup minimum package structure to support
- eslint
- transpiler for ECS6 with spread operator
- webpack for bundeling js and css
- react
- redux
Install it global
npm install -g yo @pubcore/generator-ui
How to use
-
create a directory (convention lower case and dash-separated)
mkdir new-project
-
and change into it
cd new-project
-
execute
yo @pubcore/ui