0.1.6 • Published 7 years ago

waef-dev-proxy v0.1.6

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

waef-dev-proxy

proxy dev server for waef

Install

$ npm install waef-dev-proxy

Usage

/*runProxy.js*/
var devProxy = require('waef-dev-proxy');
devProxy.run({
  // config here .Detail see DefaultConfig
});

/*package.json*/
{
  "scripts": {
     "proxy": "node runProxy.js"
  }
}
$ npm run proxy

DefaultConfig

{
  cwd: process.cwd(),           // devRootDir
  reversedPath: '../../../',    // use this path to find devRootDir from waef-dev-proxy install dir
  port: 6969,                   // proxy server port browser http://localhost:port
  doraPort: 6970,               // dora server port
  mockDir: './mocks',           // mock files dir
  watching: false               // watch file change.set true to no caching
}

License

MIT

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago