Wiredep CLI

0.1.0 · abandoned · verified Wed Apr 22

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.

Common errors

Warnings

Install

Quickstart

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.

npm install -g wiredep-cli
npm install -g wiredep # wiredep is often installed globally for CLI use with wiredep-cli
bower init --yes # Initialize a bower.json if not present
bower install jquery --save # Install a sample Bower package

# Create a dummy HTML file
cat > index.html << EOF
<!doctype html>
<html>
<head>
  <!-- bower:css -->
  <!-- endbower -->
</head>
<body>
  <!-- bower:js -->
  <!-- endbower -->
  <p>Hello from Wiredep!</p>
</body>
</html>
EOF

# Run wiredep-cli to inject dependencies
wiredep --src index.html

cat index.html # View the updated HTML with injected scripts

view raw JSON →