@eggjs/development
development tool for egg
Last updated a year ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @eggjs/development 
SYNC missed versions from official npm registry.

@eggjs/development

NPM version Known Vulnerabilities npm download Node.js Version PRs Welcome

This is an egg plugin for local development, under development environment enabled by default, and closed under other environment.

@eggjs/development has been built-in for egg. It is enabled by default.

Configuration

see config/config.default.ts 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:

  • ${app_root}/app
  • ${app_root}/config
  • ${app_root}/mocks
  • ${app_root}/mocks_proxy
  • ${app_root}/app.js

set config.development.overrideDefault to true to skip defaults merge.

Under the following directory (including subdirectories) will ignore file changes under development environment by default:

  • ${app_root}/app/view
  • ${app_root}/app/assets
  • ${app_root}/app/public
  • ${app_root}/app/web

set config.development.overrideIgnore to true to skip defaults merge.

Developer can use config.reloadPattern(multimatch) to control whether to reload.

// config/config.default.ts
export default = {
  development: {
    // don't reload when css fileChanged
    // https://github.com/sindresorhus/multimatch
    reloadPattern: ['**', '!**/*.css'],
  },
};

Loader Trace

You can view loader trace for performance issue from http://127.0.0.1:7001/__loader_trace__

Questions & Suggestions

Please open an issue here.

License

MIT

Contributors

Contributors

Made with contributors-img.

Current Tags

  • 5.0.2-beta.27                                ...           beta (2 months ago)
  • 5.1.0                                ...           latest (2 months ago)
  • 5.0.2-rc.1                                ...           rc (2 months ago)

61 Versions

  • 5.1.0                                ...           2 months ago
  • 5.0.2                                ...           2 months ago
  • 5.0.2-rc.1                                ...           2 months ago
  • 5.0.2-rc.0                                ...           2 months ago
  • 5.0.2-beta.27                                ...           2 months ago
  • 5.0.2-beta.26                                ...           4 months ago
  • 5.0.2-beta.25                                ...           4 months ago
  • 5.0.2-beta.24                                ...           4 months ago
  • 5.0.2-beta.23                                ...           5 months ago
  • 5.0.2-beta.22                                ...           5 months ago
  • 5.0.2-beta.20                                ...           5 months ago
  • 5.0.2-beta.19                                ...           5 months ago
  • 5.0.2-beta.17                                ...           5 months ago
  • 5.0.2-beta.16                                ...           5 months ago
  • 5.0.2-beta.15                                ...           5 months ago
  • 5.0.2-beta.14                                ...           5 months ago
  • 5.0.2-beta.13                                ...           5 months ago
  • 5.0.2-beta.12                                ...           5 months ago
  • 5.0.2-beta.11                                ...           5 months ago
  • 5.0.2-beta.10                                ...           5 months ago
  • 5.0.2-beta.9                                ...           8 months ago
  • 5.0.2-beta.8                                ...           8 months ago
  • 5.0.2-beta.7                                ...           8 months ago
  • 5.0.2-beta.6                                ...           8 months ago
  • 5.0.2-beta.5                                ...           8 months ago
  • 5.0.2-beta.4                                ...           8 months ago
  • 5.0.2-beta.3                                ...           9 months ago
  • 5.0.2-beta.2                                ...           9 months ago
  • 5.0.2-beta.1                                ...           9 months ago
  • 5.0.2-beta.0                                ...           9 months ago
  • 5.0.1-beta.0                                ...           9 months ago
  • 5.0.0-beta.36                                ...           a year ago
  • 5.0.0-beta.35                                ...           a year ago
  • 5.0.0-beta.34                                ...           a year ago
  • 5.0.0-beta.33                                ...           a year ago
  • 5.0.0-beta.32                                ...           a year ago
  • 5.0.0-beta.31                                ...           a year ago
  • 5.0.0-beta.30                                ...           a year ago
  • 5.0.0-beta.29                                ...           a year ago
  • 5.0.0-beta.28                                ...           a year ago
  • 5.0.0-beta.27                                ...           a year ago
  • 5.0.0-beta.26                                ...           a year ago
  • 5.0.0-beta.25                                ...           a year ago
  • 5.0.0-beta.24                                ...           a year ago
  • 5.0.0-beta.23                                ...           a year ago
  • 5.0.0-beta.22                                ...           a year ago
  • 5.0.0-beta.21                                ...           a year ago
  • 5.0.0-beta.20                                ...           a year ago
  • 5.0.0-beta.19                                ...           a year ago
  • 5.0.0-beta.18                                ...           a year ago
  • 5.0.0-beta.17                                ...           a year ago
  • 5.0.0-beta.16                                ...           a year ago
  • 5.0.0-beta.15                                ...           a year ago
  • 5.0.0-beta.14                                ...           a year ago
  • 5.0.0-beta.13                                ...           a year ago
  • 4.1.0-beta.11                                ...           a year ago
  • 4.1.0-beta.10                                ...           a year ago
  • 4.0.1-beta.3                                ...           a year ago
  • 4.0.1-beta.2                                ...           a year ago
  • 4.0.1-beta.1                                ...           a year ago
  • 4.0.0                                ...           2 years ago
Downloads
Total 82
Today 0
This Week 0
This Month 64
Last Day 0
Last Week 63
Last Month 3
Dependencies (3)
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE