omi/cli
dntzhang 043dc7f159 fix cli 2017-05-02 12:39:01 +08:00
..
bin update omi-cli 2017-04-09 00:15:44 +08:00
lib fix omi-cli bug 2017-04-10 16:51:07 +08:00
template fix cli 2017-05-02 12:38:45 +08:00
.gitignore add omi-cli 2017-02-22 03:54:25 +08:00
.npmignore update omi-cli to support creating a project with new directory. 2017-02-22 21:59:28 +08:00
README.md Update README.md 2017-04-09 05:07:10 +08:00
package.json fix cli 2017-05-02 12:39:01 +08:00

README.md

omi-cli

CLI for scaffolding Omi.js projects.

Installation

Prerequisites: Node.js (>=6.x), npm version 3+

$ npm install omi-cli -g

Usage

initialize a new omi application :

$ omi init                          // in current directory
$ omi init [project name]           // in new directroy named project name

omi-cli will run npm command to install dependencies automatically. You could switch the mirror source with:

$ omi init app -m cnpm 

we support to shift from default to npm, cnpm or taobao mirror.

Scaffolding

Using Gulp + Webpack + Babel + BrowserSync Scaffolding.

You can modify your project nameor modify the project detail by npm init.

development

$ npm run dev

build

$ npm run dist

omi pr

initialize a new omi-pr project :

$ omi init-pr                          // in current directory
$ omi init-pr [project name]           // in new directroy named project name

pre-render your project for speeding up your web page access times, you can run:

$ omi pr

in your omi-pr project.

That's all, have fun.