egg-development
Advanced tools
Comparing version
@@ -10,2 +10,4 @@ const path = require('node:path'); | ||
const rundir = agent.config.rundir; | ||
const stat = await fs.stat(rundir, { throwIfNoEntry: false }); | ||
if (!stat) return; | ||
const files = await fs.readdir(rundir); | ||
@@ -12,0 +14,0 @@ for (const file of files) { |
module.exports = app => { | ||
// if true, then don't need to wait at local development mode | ||
if (app.config.development.fastReady) process.nextTick(() => app.ready(true)); | ||
if (app.config.development.fastReady) { | ||
process.nextTick(() => app.ready(true)); | ||
} | ||
app.config.coreMiddlewares.push('eggLoaderTrace'); | ||
}; |
{ | ||
"name": "egg-development", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "development tool for egg", | ||
@@ -23,5 +23,6 @@ "eggPlugin": { | ||
"multimatch": "^5.0.0", | ||
"utility": "^2.1.0" | ||
"utility": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.10.2", | ||
"egg": "3", | ||
@@ -28,0 +29,0 @@ "egg-bin": "6", |
# egg-development | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[](https://github.com/eggjs/egg-development/actions/workflows/nodejs.yml) | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![David deps][david-image]][david-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
[![npm download][download-image]][download-url] | ||
[](https://nodejs.org/en/download/) | ||
[npm-image]: https://img.shields.io/npm/v/egg-development.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/egg-development | ||
[travis-image]: https://img.shields.io/travis/eggjs/egg-development.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/eggjs/egg-development | ||
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-development.svg?style=flat-square | ||
[codecov-url]: https://codecov.io/github/eggjs/egg-development?branch=master | ||
[david-image]: https://img.shields.io/david/eggjs/egg-development.svg?style=flat-square | ||
[david-url]: https://david-dm.org/eggjs/egg-development | ||
[snyk-image]: https://snyk.io/test/npm/egg-development/badge.svg?style=flat-square | ||
@@ -27,3 +23,2 @@ [snyk-url]: https://snyk.io/test/npm/egg-development | ||
## Configuration | ||
@@ -80,2 +75,8 @@ | ||
[MIT](https://github.com/eggjs/egg-development/blob/master/LICENSE) | ||
[MIT](LICENSE) | ||
## Contributors | ||
[](https://github.com/eggjs/egg-development/graphs/contributors) | ||
Made with [contributors-img](https://contrib.rocks). |
11071
1.77%138
2.99%81
1.25%7
16.67%Updated