The "assets" program is motivated by the need to automate the copying of assets
from npm modules. The typical use case is for images and css files that need
to be moved to a location accessible by the web server. It is assumed that
javascript code will be packed and run from a single 'root' location.
The program will look for an "assets" field in the package.json file. This
field can contain the following fields:
- src: A string, or array of string, listing the file locations to copy files
from. Uses 'glob' format.
- dest: The destination directory to copy files to, only relevant to the top
level project. Defaults to "build".
- flat: Defaults to false. if true, copy only the files, not the full
directory paths. This overrides up.
- up: Defaults to n=1. Omit the first 'n' directories in the tree. Typically
this will be the 'src' directory.
- inject-css: Defaults to not set. If set, to either a string or an array,
set 'style' nodes in the specified html file(s).