Skip to content

camnpr/yhwok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

yhwok

yhwok is a simple develop cli. 简体中文

Features

  • 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

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, motion, weex, Wechat, vue, react...
  "build": "yhwok build", // support pwa
  "dev": "yhwok dev" // TODO: vconsole ? unit test
}

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

Releases

No releases published

Packages

No packages published