Socket
Book a DemoInstallSign in
Socket

mastor-cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mastor-cli

master of react

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

mastor-cli(based on dva-cli)

NPM version NPM downloads

Getting Satarted

Install, create and start.

# Install
$ npm install mastor-cli -g

# Create app
$ mastor new myapp

# Start app
$ cd myapp
$ npm start

Commands

We have 3 commands: new, init and generate(alias g).

mastor new [options]

Create app with new directory.

Usage Examples

$ mastor new myapp
$ mastor new myapp --demo
$ mastor new myapp --no-install

options

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

mastor init [options]

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

mastor generate (short-cut alias: "g")

Generate route, model and component.

Usage Examples

$ mastor g route product-list
$ mastor g model products
$ mastor g component Editor
$ mastor g component Users/UserModal
$ mastor g component Header --no-css

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             # Dva models
    ├── router.js          # Router configuration
    ├── routes             # Route components
    ├── services           # Used for communicate with server
    └── utils              # Utils
        └── request.js     # A util wrapped dva/fetch
├── .editorconfig          #
├── .eslintrc              # Eslint config
├── .gitignore             #
├── .roadhogrc             # Roadhog config
└── package.json           #

License

MIT

FAQs

Package last updated on 23 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.