yhwok

0.0.14 • Public • Published

image | left image | left NPM version NPM downloads tested with jest

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

Readme

Keywords

Package Sidebar

Install

npm i yhwok

Weekly Downloads

1

Version

0.0.14

License

MIT

Unpacked Size

34.2 kB

Total Files

26

Last publish

Collaborators

  • isudaji