create-feli is the initializer used by npm for creating a mini-server package, usually within a mono-repo. It contains the command line interface application called by npm create feli@latest
.
The mini-server package aims at installing locally your webUI. The mini-server package should be named according to your project-name (e.g. webAppAbc-uis).
cd XYZ_mono/pkg/
npm create feli@latest
# adjust the script copy_ui for the exact path of copy-from
vim webAppAbc-uis/package.json
# integrate the scripts of webAppAbc-uis into the mono-repo top-level scripts
vim ../package.json
# install the webAppAbc-uis dependencies
npm i
npm run ci
npm run publish
create-feli is not intended to be installed directly but rather used via one of the following commands:
npm create feli@latest
npm create feli@latest webAppAbc-uis
npm init feli@latest webAppAbc-uis
npm exec create-feli@latest webAppAbc-uis
npx create-feli@latest webAppAbc-uis
git clone https://github.com/charlyoleg2/feli_mono
cd feli_mono
npm install
npm -w create-feli run ci
cd pkg/create-feli
npm run clean && npm i && npm run ci && npm run run
Rocket stages:
- npm clean # start from a clean environment
- npm i # install the dependencies of create-feli and in particular those inside feli_mono/pkg/create-feli/node_modules
- npm run ci # compile create-feli.ts into javascript and copy the directory template
- npm run run # execute the javascript create-feli.js that generates the directory tmp/webAppAbc-uis
- cd tmp/webAppAbc-uis # move to the generated package
- npm i # install the dependencies of the generated package
- npm run ci # compile the generated mini-server
- npm run run # run the mini-server