Bundle static files with NPM packages
Want to see pretty graphs? Log in now!
npm install npm-assets
|2||downloads in the last week|
|4||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated 5 months ago|
|Keywords||assets, web, files, bundle|
|Dependencies||mkdirp, async, mout, resolve, find-modules|
Use static files from NPM packages.
This is a tool for copying static files (fonts, CSS, images, etc.) declared and
packaged in NPM modules into a folder. To define static files in a package, add
assets field to the
package.json containing an array of files to include.
These files will be copied (preserving the same directory structure) when this
tools is ran. It will recursively search for modules in the
var assets = require('npm-assets'); assets( process.cwd(), // root directory 'assets', // destination directory done); // callback
Also included is the
npm-assets executable. Simply run
npm-assets <dest> to
search for all assets from modules in the current folder and copy them to the
# Copy all assets to the `assets` folder npm-assets assets