1.0.6 • Published 2 years ago

best-web-cli v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

best-create-app

NPM version NPM downloads

A web cli for best!


Getting Started

Install, create and start.

# Install
$ npm install best-create-app -g

# Create app
$ best new myapp

# Start app
$ cd myapp
$ npm start

Commands

We have 2 commands: new, init.

best new options

Create app with new directory.

Usage Examples

$ best new myapp
$ best new myapp --demo
$ best new myapp --no-install

options

  • --demo -- Generate a dead simple project for quick prototype
  • --no-install -- Disable npm install after files created

best init options

Create app in current directory. It's options is the same as best new.

Generated File Tree

.
├── src                    # Source directory
    ├── assets             # Store images, icons, ...
    ├── components         # UI components
    ├── index.css          # CSS for entry file
    ├── index.html         # HTML for entry file
    ├── index.js           # Enry file
    ├── models             # best models
    ├── router.js          # Router configuration
    ├── routes             # Route components
    ├── services           # Used for communicate with server
    └── utils              # Utils
        └── request.js     # A util wrapped best/fetch
├── .editorconfig          #
├── .eslintrc              # Eslint config
├── .gitignore             #
├── .roadhogrc             # Roadhog config
└── package.json           #

Configuration

best-create-app use roadhog for build and server, view roadhog#Configuration (中文版) for details.

License

MIT