mp-pack-cli v1.2.1
**
The CLI to create & develop a Web/React Application
**
1. How to install CLI
Make sure you have installed node which version >= 16
npm install -g mp-pack-cli
2. Basic commands
2.1. Create new project
Start your terminal at the path which store project then run command:
npx mp-pack-cli new my-app
2.2. Start dev server
Start terminal at your project then run command:
npm run dev
2.3. Build production
Start terminal at your project then run command:
npm run build
3. Advanced commands
3.1 Build any JS entries using Server side rendering
For example, your entry paths is "src/index1.js" "src/index2.js" and place output file at "dist"
mp-pack-cli build:ssr src/index1.js src/index2.js --outDir dist
3.2. Create JSON dictionary language from csv
For example, your path of csv file is "src/static/lang.csv" and place output json files at "dist/lang"
mp-pack-cli lang --i src/static/lang.csv --o dist/lang
3.3. Create SVG icon font
For example, your folder of svg files is "src/static/svg" and place output icon fonts files at "dist/icon"
mp-pack-cli icon --i src/static/svg --o dist/icon
After that, import the generated icon.css into your app
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago