1.2.1 • Published 8 months ago

mp-pack-cli v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

**

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

1.2.1

8 months ago

1.2.0

8 months ago

1.1.3

8 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

25.2.4

10 months ago

25.1.6

10 months ago

25.2.3

10 months ago

25.2.2

10 months ago

25.2.1

10 months ago

25.1.5

10 months ago

25.1.4

10 months ago

25.1.3

10 months ago

25.1.2

10 months ago

25.1.1

10 months ago