This package, `wiredep-cli`, provides a command-line interface for `wiredep`, a tool designed to automatically inject Bower front-end dependencies into HTML, CSS, and JS files. Its primary function was to automate the inclusion of `<script>` and `<link>` tags based on the `bower.json` manifest. The package, version 0.1.0, and its core dependency `wiredep` (version 0.11.0) were both last updated in March 2016. Given that Bower itself has been officially deprecated since 2017 in favor of modern front-end package managers like npm/Yarn and build tools like Webpack, `wiredep-cli` is no longer actively maintained or relevant for contemporary web development workflows. This tool is part of an abandoned ecosystem.
npm install wiredep-cliNo compatibility data collected yet for this library.
Demonstrates global installation of wiredep-cli and wiredep, initializing Bower, installing a package, and then using `wiredep` command to inject it into an HTML file.
Migrate your project from Bower to a modern package manager (npm, Yarn, pnpm) and a module bundler (Webpack, Rollup, Vite). Manually manage script/link tags or use a build tool plugin for injection.
Avoid using this package for new projects. For existing projects, consider a full migration to modern tools as outlined in the previous warning.
Ensure your HTML, CSS, or JS files contain the correct Bower injection placeholders as specified in the `wiredep` documentation.
Always use `bower install --save <package-name>` when installing front-end components intended for injection. Alternatively, configure `wiredep` to include `devDependencies`.
Install `wiredep` globally: `npm install -g wiredep`. Also ensure `wiredep-cli` is installed: `npm install -g wiredep-cli`.
Verify `--bowerJson` and `--directory` options point to the correct locations. Check `bower.json` files for missing `main` entries and use `overrides` if necessary. Ensure correct HTML/CSS comment blocks exist for injection. Run `bower install` to ensure components are present.
Install `wiredep` locally as a dependency: `npm install --save-dev wiredep`.