Release 4.0.0
[skip ci]
4.0.0 (2024-12-31)
⚠ BREAKING CHANGES
- drop Node.js < 18.19.0 support
part of https://github.com/eggjs/egg/issues/3644
https://github.com/eggjs/egg/issues/5257
Summary by CodeRabbit
Release Notes
New Features
- Added support for ECMAScript modules (ESM).
- Enhanced CLI with more robust start and stop commands.
- Improved TypeScript integration and type safety.
- Introduced new commands for stopping an Egg.js server application.
- Added new configuration options for logging and process management.
Improvements
- Updated package configuration for better modularity.
- Modernized test infrastructure with TypeScript support.
- Refined error handling and logging mechanisms.
- Enhanced process management capabilities.
Improved documentation with updated installation instructions and usage examples.
Breaking Changes
- Renamed package from
egg-scriptsto@eggjs/scripts.- Requires Node.js version 18.19.0 or higher.
- Significant changes to project structure and module exports.
Bug Fixes
- Improved process management for server start and stop operations.
- Enhanced cross-platform compatibility.
Fixed issues with asynchronous route handlers in various applications.
Features
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
@eggjs/scripts
deploy tool for egg project.
Note: Windows is partially supported, see #22
Install
Usage
Add
eggctltopackage.jsonscripts:Then run as:
npm startnpm stopNote:
egg-scriptsis not recommended to install global, you should install and use it as npm scripts.Command
start
Start egg at prod mode.
baseDir- directory of application, default toprocess.cwd().port- listening port, default toprocess.env.PORT, if unset, egg will use7001as default.title- process title description, use for kill grep, default toegg-server-${APP_NAME}.workers- numbers of app workers, default toprocess.env.EGG_WORKERS, if unset, egg will useos.cpus().lengthas default.daemon- whether run at background daemon mode, don’t use it if in docker mode.framework- specify framework that can be absolute path or npm package, default to auto detect.env- server env, default toprocess.env.EGG_SERVER_ENV, recommended to keep empty then use framwork default env.stdout- customize stdout file, default to$HOME/logs/master-stdout.log.stderr- customize stderr file, default to$HOME/logs/master-stderr.log.timeout- the maximum timeout when app starts, default to 300s.ignore-stderr- whether ignore stderr when app starts.sourcemap/typescript/ts- provides source map support for stack traces.node- customize node command path, default will find node from $PATHstop
Stop egg gracefull.
Note: if exec without
--title, it will kill all egg process.title- process title description, use for kill grep.timeout- the maximum timeout when app stop, default to 5s.Options in
package.jsonIn addition to the command line specification, options can also be specified in
package.json. However, the command line designation takes precedence.Questions & Suggestions
Please open an issue here.
License
MIT
Contributors
Made with contributors-img.