# ml-cli

> cli tools for lili's React project

Latest version **2.0.3** (published 2018-01-31) · 0 weekly downloads

## Install

```sh
npm install ml-cli
pnpm add ml-cli
yarn add ml-cli
bun add ml-cli
```

Provides the command `ml`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2018-01-31 |
| First published | 2016-06-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 38 |
| Known vulnerabilities | 0 (+11 in 5 direct dependencies) |
| Install scripts | no |
| Author | li.li |
| Maintainers | li.li |

## Links

- npm: https://www.npmjs.com/package/ml-cli
- npm.io page: https://npm.io/package/ml-cli

## Dependencies (38)

- [ip](https://npm.io/package/ip.md) ^1.1.5
- [ora](https://npm.io/package/ora.md) ^1.3.0
- [async](https://npm.io/package/async.md) ^2.5.0
- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [yargs](https://npm.io/package/yargs.md) ^9.0.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.2
- [webpack](https://npm.io/package/webpack.md) ^3.6.0
- [jsonfile](https://npm.io/package/jsonfile.md) ^4.0.0
- [git-clone](https://npm.io/package/git-clone.md) ^0.1.0
- [node-sass](https://npm.io/package/node-sass.md) ^4.5.3
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.0
- [css-loader](https://npm.io/package/css-loader.md) ^0.28.7
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.10
- [metalsmith](https://npm.io/package/metalsmith.md) ^2.3.0
- [url-loader](https://npm.io/package/url-loader.md) ^0.6.2
- [consolidate](https://npm.io/package/consolidate.md) ^0.14.5
- [file-loader](https://npm.io/package/file-loader.md) ^1.1.6
- [sass-loader](https://npm.io/package/sass-loader.md) ^6.0.6
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^7.1.5
- [babel-loader](https://npm.io/package/babel-loader.md) ^7.1.2
- [style-loader](https://npm.io/package/style-loader.md) ^0.19.0
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^4.1.0
- [babel-register](https://npm.io/package/babel-register.md) ^6.26.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^2.0.6
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.6.0
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.24.1
- [check-dependencies](https://npm.io/package/check-dependencies.md) ^1.1.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^2.9.1
- [babel-plugin-lodash](https://npm.io/package/babel-plugin-lodash.md) ^3.3.2
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^2.30.1
- [babel-preset-stage-2](https://npm.io/package/babel-preset-stage-2.md) ^6.24.1
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) ^2.9.0
- [extract-text-webpack-plugin](https://npm.io/package/extract-text-webpack-plugin.md) ^3.0.1
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) ^6.23.0
- [friendly-errors-webpack-plugin](https://npm.io/package/friendly-errors-webpack-plugin.md) ^1.6.1
- [optimize-css-assets-webpack-plugin](https://npm.io/package/optimize-css-assets-webpack-plugin.md) ^3.2.0
- [babel-plugin-transform-react-constant-elements](https://npm.io/package/babel-plugin-transform-react-constant-elements.md) ^6.23.0
- [babel-plugin-transform-react-remove-prop-types](https://npm.io/package/babel-plugin-transform-react-remove-prop-types.md) ^0.4.12

## Recent versions

- 2.0.3 (latest) — 2018-01-31
- 2.0.2 — 2018-01-15
- 2.0.1 — 2018-01-15
- 2.0.0 — 2018-01-15
- 1.0.2 — 2016-07-23
- 1.0.1 — 2016-07-23
- 1.0.0 — 2016-07-23
- 0.1.1 — 2016-07-06
- 0.1.0 — 2016-06-13

## README

ml-cli
=======
> for lili's react project

Installation
------------

```bash
$ npm install ml-cli -g
```

Usage
-----

```
# Create new project
ml create my-projec-name

# Start a development live-reload server
ml start

# Build for production
ml build
```

CLI Options
-----------

**ml start**

```bash
--port, -p     Port to start a server on             [string]    [default: "8080"]
```


Custom Configuration
--------------------

**Browserslist**

declare a `browserslist` key within your `package.json`. default list is `[ '> 1%', 'last 2 versions' ]`


**Babel**
> 该功能不完善

create a `.babelrc` file in your project's root directory.


**Webpack**

create a `ml.config.js` file which exports function that will change the webpack's config

```
export default function (config, argv) {
  config.output.publicPath = '//cdn.example.com'
}
```

Credits
-------

- [preact-cli](https://github.com/developit/preact-cli)
- [vue-cli](https://github.com/vuejs/vue-cli)

---
_Source: https://npm.io/package/ml-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
