更易上手的前端构建工具
JavaScript Other
Latest commit 8e10d8a Jan 18, 2017 @QingWei-Li QingWei-Li v1.4.0
Permalink
Failed to load latest commit information.
.github Update contributing Sep 22, 2016
packages v1.4.0 Jan 19, 2017
test fix test Dec 20, 2016
.gitignore add lerna Sep 5, 2016
.travis.yml Fix makefile Sep 5, 2016
CHANGELOG.md changelog 1.4.0 Jan 19, 2017
LICENSE first commit Mar 11, 2016
Makefile webpack 2.2.0 (#143) Jan 19, 2017
README.md webpack 2.2.0 (#143) Jan 19, 2017
README_zh-cn.md webpack 2.2.0 (#143) Jan 19, 2017
lerna.json v1.4.0 Jan 19, 2017
package.json Update scripts Sep 5, 2016

README.md

cooking

A front-end build tool that comes handy

Build Status Coverage Status npm npm Gitter

Links

Discussion

Hit Gitter if you come across any problem while using cooking. Issues are only for bug reports and feature requests.

Features

  • Simplified webpack configuring with humanistic parameters
  • Use cooking CLI to efficiently scaffold projects without installing dependencies repeatedly (based on webpack 2)
  • Compatible with both webpack 1 and 2 with just one set of configuration
  • Generated configuration fully compatible with webpack CLI

Installation

runtime environment

  • Node.js 4+
  • npm 3+
  • Python 2.7.x

Using cooking CLI

npm i cooking-cli -g

Step 1. create a vue-based project (vue scaffold will be downloaded automatically if not installed)

$ cooking create my-project vue
$ cd my-project

Step 2. start developing

$ cooking watch

Using cooking core

npm i cooking -D

# install webpack dependencies (take webpack 1 for example)
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

# or install webpack dependencies (take webpack 2)
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 webpack-dev-server extract-text-webpack-plugin@beta -D

# start developing
node_modules/.bin/cooking watch # or webpack --config cooking.conf.js

# if cooking-cli is globally installed, you can also do this (it still runs your local cooking)
cooking watch

License

MIT