Skip to content
/ cli Public

🐸 The command-line interface for set up a standard frontend project (react-spa, vue-spa, react-ssr, react-component, vue-component, toolkit)

License

Notifications You must be signed in to change notification settings

omni-door/cli

Repository files navigation

🐸 @omni-door/cli

https://www.omnidoor.org

A CLI for scaffolding standard frontend projects and running common dev/build/release tasks.

NPM downloads npm version node version Build Status codecov Commitizen friendly install size license

English | 简体中文

Requirements

  • Node.js >= 10.13.0 (latest LTS recommended)

Installation

  • Clone: git@github.com:omni-door/cli.git
  • npm: npm install @omni-door/cli -g
  • Yarn: yarn global add @omni-door/cli
  • npx (no install): npx @omni-door/cli init

Quick Start

omni init

Commands

Run omni --help for the full option list.

  • omni init [strategy] scaffold a project (stable or latest)
  • omni dev start the development server
  • omni start start the production server
  • omni new [name] create a component/template
  • omni build build the project based on omni.config.js
  • omni release publish the project based on omni.config.js

Pass-through args are supported for dev, start, and build:

omni dev -- --webpack
omni start -- --hostname 0.0.0.0
omni build -- --webpack

Configuration

See the omni.config.js reference: docs/OMNI.md

Docs

License

Copyright (c) 2019 Bobby.li

Released under the MIT License

About

🐸 The command-line interface for set up a standard frontend project (react-spa, vue-spa, react-ssr, react-component, vue-component, toolkit)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •