zero-to-one-development
v1.0.0
Published
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
Downloads
1
Readme
egg-development
This is an egg plugin for local development, under development environment enabled by default, and closed under other environment.
Usage
// config/plugin.js
exports.development = {
enable: true,
package: 'egg-development',
};
Configuration
see config/config.default.js for more detail.
Features
- Under development environment, Output request log in STDOUT, statistic and output all key parts time-consuming;
- Watch file changes, and reload application;
About Reload
Under the following directory (including subdirectories) will watch file changes under development environment by default, trigger an Egg development environment server reload:
- $project/app
- $project/config
- $project/mocks
- $project/mocks_proxy
Under the following directory (including subdirectories) will ignore file changes under development environment by default:
- $project/app/view
- $project/app/assets
See egg-development-proxyworker for keep debug port when restart.
Questions & Suggestions
Please open an issue here.