<commit_before># 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 name，or modify the project detail by `npm init`.

### development

``` js
$ npm run dev
```

### build

``` js
$ 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.<commit_msg>update scaffolding<commit_after>转移到新地址 - [https://github.com/AlloyTeam/omi-cli](https://github.com/AlloyTeam/omi-cli)
{'fraction_non_alphanumeric': 0.12156862745098039, 'fraction_numerical': 0.001568627450980392, 'mean_word_length': 2.9261538461538463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '859722', 'n_tokens_mistral': 430, 'n_tokens_neox': 400, 'n_words': 150}