All Projects → eggjs → egg-development

eggjs / egg-development

Licence: MIT License
egg plugin for development

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to egg-development

egg-development-proxyagent
[DEPRECATED] A proxy adapter for debugging httpclient on egg.
Stars: ✭ 20 (-64.29%)
Mutual labels:  egg-plugin, egg-development
egg-view-pug
egg view plugin for pug.
Stars: ✭ 24 (-57.14%)
Mutual labels:  egg-plugin
egg-rbac
Role Based Access Control for eggjs
Stars: ✭ 32 (-42.86%)
Mutual labels:  egg-plugin
egg-session-redis
redis store for egg session
Stars: ✭ 41 (-26.79%)
Mutual labels:  egg-plugin
egg-sequelize-auto
Automatically generate bare sequelize models from your database, adjustment for egg
Stars: ✭ 27 (-51.79%)
Mutual labels:  egg-plugin
egg-vue-webpack-dev
基于egg + vue2 + webpack2 的前后端集成开发编译构建插件
Stars: ✭ 29 (-48.21%)
Mutual labels:  egg-plugin
egg-kafka-node
kafka plugin for egg.js
Stars: ✭ 36 (-35.71%)
Mutual labels:  egg-plugin
egg-oracle
OracleDB plugin for egg
Stars: ✭ 23 (-58.93%)
Mutual labels:  egg-plugin
egg-elasticsearch
elasticsearch client for egg.js
Stars: ✭ 22 (-60.71%)
Mutual labels:  egg-plugin
egg-cache
💾 Cache plugin for eggjs
Stars: ✭ 60 (+7.14%)
Mutual labels:  egg-plugin
egg-weapp-sdk
Egg的微信小程序登录会话管理SDK
Stars: ✭ 111 (+98.21%)
Mutual labels:  egg-plugin
egg-sentry
Sentry Plugin For Egg.js
Stars: ✭ 18 (-67.86%)
Mutual labels:  egg-plugin
egg-mailer
🥚 mailer plugin for egg
Stars: ✭ 23 (-58.93%)
Mutual labels:  egg-plugin
egg-grpc
grpc plugin for egg
Stars: ✭ 79 (+41.07%)
Mutual labels:  egg-plugin
egg-dingtalk
egg plugin for dingtalk
Stars: ✭ 29 (-48.21%)
Mutual labels:  egg-plugin
egg-exporter
Egg.js 的 Prometheus 指标收集插件,附带 Grafana 看板。
Stars: ✭ 24 (-57.14%)
Mutual labels:  egg-plugin
egg-apollo-server
No description or website provided.
Stars: ✭ 21 (-62.5%)
Mutual labels:  egg-plugin
egg-kafkajs
☎️kafka plugin for eggjs
Stars: ✭ 26 (-53.57%)
Mutual labels:  egg-plugin
egg-parameters
Merge all parameters (ctx.params, ctx.request.query, ctx.request.body) into ctx.params like Rails application.
Stars: ✭ 24 (-57.14%)
Mutual labels:  egg-plugin
egg-alinode
alinode plugin for egg
Stars: ✭ 54 (-3.57%)
Mutual labels:  egg-plugin

egg-development

NPM version build status Test coverage David deps Known Vulnerabilities npm download

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

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

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:

  • ${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.js
exports.development = {
  // don't reload when ts fileChanged
  // https://github.com/sindresorhus/multimatch
  reloadPattern: ['**', '!**/*.ts'],
};

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].