yhwok is a simple develop cli. 简体ä¸æ–‡
- Develop Environment: yes e.g. hot,express...
- Template: yes e.g. simple,weex,vue,react,wechat...
- PWA: yes
- Mock Data: yes
- HMR: no
- Plugin: no
- ...: no
install with npm:
npm i yhwok --save-dev
install with yarn:
yarn add yhwok --dev
// 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, motion, weex, Wechat, vue, react...
"build": "yhwok build", // support pwa
"dev": "yhwok dev" // TODO: vconsole ? unit test
}
{ '/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
webpack --config ./config/webpack.config.dev.js