edp-build is a package that serves as the build component for the ecomfe Enterprise Develop Platform (EDP), an older Node.js and npm-based command-line interface for enterprise frontend development. It was designed to handle various build-related tasks such as processing and optimizing frontend assets, including JavaScript (especially AMD modules), CSS, and images, often in conjunction with plugins like `edp-build-inline` and `edp-build-fontmin`. The package is currently at version 1.2.4. However, the entire EDP ecosystem, including edp-build, appears to be abandoned, with the main `edp` CLI last updated in 2017 and `edp-build` itself in 2016. Consequently, there is no active release cadence, and it is largely incompatible with modern frontend development practices or recent Node.js versions. Its original key differentiation was its integrated suite of tools for a specific enterprise frontend ecosystem in China, focusing on older module paradigms.
npm install edp-buildVerified import paths — ran on the pinned version, not inferred.
Demonstrates global installation of `edp` and `edp-build`, and basic command-line usage for build-related tasks.
Do not use for new projects. For existing projects, consider migrating to a modern build system (e.g., Webpack, Rollup, Vite, Gulp) or maintaining a specific legacy Node.js environment if migration is not feasible.
Ensure your project strictly adheres to the AMD module format and older project structures expected by EDP. Avoid mixing with modern JavaScript features or module systems.
Perform a comprehensive security audit of all `edp` ecosystem dependencies or, preferably, migrate to actively maintained tools. Isolate legacy systems in secure, controlled environments if use is unavoidable.
Pin your project to an older, compatible Node.js version (e.g., Node.js 6 or 8) using tools like `nvm` or Docker. This is often essential for installation and execution.
Install a legacy Node.js version (e.g., Node.js 6 or 8) using `nvm` (`nvm install 8 && nvm use 8`) or ensure you have necessary build tools (Python 2.7, Visual C++ Build Tools on Windows) installed.
Ensure `edp` and `edp-build` are installed globally: `npm install -g edp edp-build`. Verify your system's PATH includes npm's global bin directory.