asset-assistant
v0.0.20
Published
A lightweight tool for copying files from other packages.
Downloads
4
Maintainers
Readme
Introduction
Asset assistant is an npm tool for coordinating asset files across multiple projects.
Versions
The 0.0.* versions are for building up the repository and may have changes in the command specification.
Prerequisites
These programs are intended to be used with the npm package manager. As such they make use of the package.json file and the node_modules directory.
Installation
npm install -g asset-assistant
Usage
- Run the assets intializeer with 'assets init'. Adds and 'assets' parameter to the package.json file.
- The following can now be found in the package.json 'assets' field.
src
: An array of paths from witch to copy this projects files. The directory tree will be preserved. Default is '/assets/**/*'.root
: The directory to search for source paths. This directory tree will not be preserved. Default is 'src'.dest
: The directory where files will be copied to. Default is 'public_html'. This is where other projects assets will be copied to. defaults to 'public_html'.
- Remove 'assets' parameter from package.json with assets --clear. The scripts will remain unchanged. Note, this can be used to clear any parameter, defaults to assets.
assets add project
: add an assets dependency. The project must first be installed with 'npm -i' and have been initialized with 'assets init'.
assets remove project
: remove a project from the assets dependency.
assets clear
: remove the assets field from package.json.
The asset command accepts the following flags:
- -v : Verbose, print out packages looked at and files copied.
- -d : Debug, print out more information.
Development
See https://github.com/Thaerious/asset-assistant