diff --git a/CHANGELOG.md b/CHANGELOG.md index c627ff5..9f90d6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## [v1.0.0] 2016.09.11 +- 修复 postcss 选项配置出错的问题 +- 修复 clear 在开发模式也会执行的问题 + ## [v1.0.0-rc.3] 2016.09.06 - 修复 cooking-cli 的依赖 - update/import/remove 支持传入多个参数 diff --git a/README.md b/README.md index 18d3caf..59d2644 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

+

cooking

更易上手的前端构建工具 @@ -12,8 +12,10 @@ Gitter

-## 文档 -http://cookingjs.github.io +## 链接 +- [文档](http://cookingjs.github.io) +- [例子](https://github.com/cooking-demo) +- [教程: 用 cooking 搭建一个简单又优雅的 Vue 项目开发环境 (入门篇)](https://zhuanlan.zhihu.com/p/22387692) ## 讨论 使用上遇到的问题请到 [Gitter 聊天室](https://gitter.im/QingWei-Li/cooking?utm_source=share-link&utm_medium=link&utm_campaign=share-link), issue 仅仅用来处理 bug 和 feature 等的问题。 diff --git a/packages/cooking-cli/README.md b/packages/cooking-cli/README.md index aaadd12..8d81561 100644 --- a/packages/cooking-cli/README.md +++ b/packages/cooking-cli/README.md @@ -1 +1,35 @@ -# cooking-cli +# cooking +[![npm](https://img.shields.io/npm/dm/cooking-cli.svg?maxAge=2592000)]() +[![npm](https://img.shields.io/npm/v/cooking-cli.svg?maxAge=6000)](https://www.npmjs.com/package/cooking-cli) +[![gitter](https://img.shields.io/gitter/room/QingWei-Li/cooking.svg?maxAge=2592000)](https://gitter.im/QingWei-Li/cooking?utm_source=share-link&utm_medium=link&utm_campaign=share-link) + +> [cooking](https://github.com/ElemeFE/cooking) 命令行工具 + + +## Links +- [Docs](http://cookingjs.github.io) +- [Examples](https://github.com/cooking-demo) +- [Plugins](https://github.com/cookingjs) + +## Installation +```shell +npm i cooking-cli -g +``` + +## Usages +```shell +# create vue project +cooking create vue-project vue + +# development mode +cooking watch + +# production mode +cooking build + +# import plugin +cooking import vue,lint +``` + +# License +[MIT](https://github.com/ElemeFE/cooking/LICENSE) diff --git a/packages/cooking/README.md b/packages/cooking/README.md index 1c857d2..d5ccff5 100644 --- a/packages/cooking/README.md +++ b/packages/cooking/README.md @@ -1,20 +1,63 @@ # cooking +[![npm](https://img.shields.io/npm/dm/cooking.svg?maxAge=2592000)]() +[![npm](https://img.shields.io/npm/v/cooking.svg?maxAge=6000)](https://www.npmjs.com/package/cooking) +[![gitter](https://img.shields.io/gitter/room/QingWei-Li/cooking.svg?maxAge=2592000)](https://gitter.im/QingWei-Li/cooking?utm_source=share-link&utm_medium=link&utm_campaign=share-link) + +> 更易上手的前端构建工具,基于 webpack + + +## Links +- [Docs](http://cookingjs.github.io) +- [Examples](https://github.com/cooking-demo) +- [Plugins](https://github.com/cookingjs) ## Installation ```shell npm i cooking -D ``` -## webpack 1 +### webpack 1 ```shell npm i babel-core babel-loader css-loader file-loader postcss postcss-loader\ html-loader html-webpack-plugin json-loader style-loader url-loader\ webpack@1 webpack-dev-server@1 extract-text-webpack-plugin@1 -D ``` -## webpack 2 +### webpack 2 ```shell npm i babel-core babel-loader css-loader file-loader postcss postcss-loader\ html-loader html-webpack-plugin json-loader style-loader url-loader\ webpack@beta webpack-dev-server@beta extract-text-webpack-plugin@beta -D ``` + +## Usage + +cooking.conf.js +```javascript +var cooking = require('cooking') + +cooking.set({ + entry: './src/index.js', + dist: './dist', + template: './index.tpl', + hash: true, + extractCSS: true, + devServer: { port: 8080 } +}) + +module.exports = cooking.resolve() +``` + +```shell +# development +node_modules/.bin/cooking watch + +# production +node_modules/.bin/cooking build -p + +# or use webpack +NODE_ENV=production webpack --config cooking.conf.js +``` + +# License +[MIT](https://github.com/ElemeFE/cooking/LICENSE)