Socket
Socket
Sign inDemoInstall

egg-development

Package Overview
Dependencies
15
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    egg-development

development tool for egg


Version published
Maintainers
6
Install size
291 kB
Created

Changelog

Source

3.0.0 (2024-05-08)

⚠ BREAKING CHANGES

  • drop Node.js < 14 support
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

  • New Features
    • Introduced a new GitHub Actions workflow for Node.js releases.
  • Enhancements
  • Updated continuous integration workflow with improved job configurations.
  • Enhanced file system operations across multiple JavaScript files using Node.js built-in modules.
  • Bug Fixes
  • Fixed directory and file operations in test suites to use updated Node.js methods.
  • Documentation
    • Adjusted documentation comments and removed outdated directives.
  • Refactor
  • Removed the use of 'use strict'; in several JavaScript files to align with modern standards.
  • Dependencies
  • Updated various dependencies and Node version requirements to ensure compatibility and security.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Features

Readme

Source

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

Keywords

FAQs

Last updated on 08 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc