Wire dependencies to your source code.
Install the module with: npm install wiredep --save
require('wiredep')({
directory: 'the directory of your Bower packages.',
bowerJson: 'your bower.json file contents.',
ignorePath: 'optional path to ignore from the injected filepath.',
htmlFile: 'the path to the HTML file to take control of.',
jsPattern: 'default: <script src="{{filePath}}"></script>',
cssPattern: 'default: <link rel="stylesheet" href="{{filePath}}" />',
exclude: [ /jquery/, "bower_components/modernizr/modernizr.js" ]
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2013 Stephen Sawchuk. Licensed under the MIT license.