{"id":13103,"library":"edp-build","title":"EDP Build Tool","description":"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.","status":"abandoned","version":"1.2.4","language":"javascript","source_language":"en","source_url":"git://github.com/ecomfe/edp-build","tags":["javascript"],"install":[{"cmd":"npm install edp-build","lang":"bash","label":"npm"},{"cmd":"yarn add edp-build","lang":"bash","label":"yarn"},{"cmd":"pnpm add edp-build","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core utilities for the EDP platform.","package":"edp-core","optional":false},{"reason":"This package is a component of the 'edp' command-line tool, not a standalone library.","package":"edp","optional":false}],"imports":[{"note":"edp-build is primarily a CLI tool and a component of the `edp` command-line interface. It is not designed for direct programmatic import as a JavaScript module in user code. Functionality is exposed via `edp` global commands.","wrong":"import { build } from 'edp-build'","symbol":"EDP Build Commands","correct":"edp build <command>"},{"note":"The `edp` platform and its components, including `edp-build`, are typically installed globally to be accessible as command-line tools. Local installation without `edp` globally is not how it's intended to be used.","wrong":"npm install edp-build","symbol":"Global CLI Installation","correct":"npm install -g edp edp-build"}],"quickstart":{"code":"npm install -g edp edp-build\n\n# Navigate to your project root\ncd my-old-edp-project\n\n# Example: List AMD modules in biz.js (from original README)\n# This checks for potential issues if a module is listed multiple times.\nedp amd list biz.js | sort | uniq -c | sort -k 1 -n -r | awk '{if($1>1){print $0}}'\n\n# Example: Run a generic build process (requires edp-build configuration in project)\n# This assumes a project configured with edp build pipelines.\nedp build\n\n# Example: Specific build command for release\nedp release --config=release-config.js","lang":"javascript","description":"Demonstrates global installation of `edp` and `edp-build`, and basic command-line usage for build-related tasks."},"warnings":[{"fix":"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.","message":"The entire `ecomfe/edp` platform, including `edp-build`, is considered abandoned. The last significant update to `edp` was in 2017, and `edp-build` in 2016. It is highly unlikely to be compatible with modern Node.js versions or current frontend development tools and practices.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"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.","message":"`edp-build` relies heavily on older frontend module systems like AMD. Its processors and configurations are tailored for these paradigms and may not work with ES Modules (ESM), CommonJS (CJS) in modern contexts, or contemporary bundler configurations.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"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.","message":"Due to its abandonment, `edp-build` and its underlying dependencies may contain unpatched security vulnerabilities. Using it in production environments without thorough security auditing is not recommended.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"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.","message":"Compatibility issues with newer Node.js versions are highly probable. Users often encounter `node-gyp` errors during installation or runtime errors due to breaking API changes in Node.js.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-19T00:00:00.000Z","next_check":"2026-07-18T00:00:00.000Z","problems":[{"fix":"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.","cause":"Native dependencies failing to compile against newer Node.js versions.","error":"Error: `node-gyp` failed with exit code: 1"},{"fix":"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.","cause":"The `edp` CLI tool, which orchestrates `edp-build`, is not installed globally or not in the system's PATH.","error":"'edp' is not recognized as an internal or external command, operable program or batch file."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"edp"}