A CLI for scaffolding standard frontend projects and running common dev/build/release tasks.
English | 简体中文
- Node.js >= 10.13.0 (latest LTS recommended)
- 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
omni initRun omni --help for the full option list.
omni init [strategy]scaffold a project (stable or latest)omni devstart the development serveromni startstart the production serveromni new [name]create a component/templateomni buildbuild the project based onomni.config.jsomni releasepublish the project based onomni.config.js
Pass-through args are supported for dev, start, and build:
omni dev -- --webpack
omni start -- --hostname 0.0.0.0
omni build -- --webpackSee the omni.config.js reference: docs/OMNI.md
- API/Plugin docs: docs/DEV.md
- Changelog: docs/CHANGELOG.md
Copyright (c) 2019 Bobby.li
Released under the MIT License
