yhwok
v0.0.14
Published
yhwok CLI tool
Downloads
3
Readme
yhwok
yhwok is a simple develop cli. 简体中文
Install
install with npm:
npm i yhwok --save-dev
install with yarn:
yarn add yhwok --dev
Usage
// package.json
"scripts": {
"help": "yhwok [help|-h]", // to be perfected...
"version": "yhwok [version|-v]", // add version update check
"init": "yhwok init [project name]", // create project files; TODO: support simple, weex, Wechat, vue, react...
"build": "yhwok build",
"dev": "yhwok dev" // TODO: vconsole
}
mock data
{ '/hello': [Function: /hello],
'/list': [Function: /list],
'/user': { name: 'test', age: 20 },
'/api/*': 'http://www.example.com',
'/ok': [Function: /ok],
'/new': [Function: /new],
'/old1': { name: 'test', age: 101 } }
[HPM] Proxy created: / -> http://www.example.com
Test
webpack --config ./config/webpack.config.dev.js