Pillar-CLI
Scaffolding tool for web app development.
📦 Installation
Download and install Node.js, which including NPM
.
Install pillar-cli
globally in your machine. You may need administrator privileges to execute these commands.
npm install -g @plrabbit/cli
# OR
yarn global add @plrabbit/cli
Check if you install it successfully.
pillar --version
🆕 Creating a New Project
Just simply run:
pillar create project-name
The create
command has some options for the project initialization, you may find them by running:
pillar create --help
Usage: create [options] <project-name>
create a new project
Options:
-e, --no-depend Skip dependencies installation
-n, --no-git Skip git initialization
-h, --help Output usage information
Template(s)
name | description |
---|---|
Vunt | Vue 2.x + Ant Design |
💡 Development
-
Clone this repository, then run
yarn install
to install dependencies. -
Run create script to create a new project.
Please note that the project will be generated
_test-output
whenprocess.env.NODE_ENV === 'development'
.
yarn run create your-project-name
DO NOT run node ./bin create xxx
directly, otherwise the project will be generated in pillar-cli
project root directory, which will cause some unknown problem.