3.0.0 • Published 5 years ago

cartridge-copy-assets v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Cartridge Copy Assets Build Status

Copy Assets expansion pack for Cartridge

To use this module, you will need cartridge-cli installed and have a cartridge project setup.

npm install cartridge-copy-assets --save-dev

Maintainers

NameGithub Profile
Matthew Claffeycode-mattclaffey
Tristan Ashleytawashley

Task Config

Copy tasks are defined in the task.copy-assets.js config file. Each key of the taskConfig object makes a new gulp task.

The only predefined task, copy-assets, runs all copy tasks one after another.

How to add new copy tasks

Copy tasks are described in the config file task.copy-assets.js. Adding a new key to the taskConfig object outlines a copy task.

var taskConfig = {
		fonts: {
			src: 'path/to/src', //This can be a file, folder or glob
			dest: 'path/to/dest' //If directory doesn't exist, it will be created
		}
};

This will create the copy task fonts for you as long as your src & dest directories are correct.

Running gulp copy-assets:fonts will copy the contents of the path fonts.src to the path fonts.dest


Development

Commit message standards Commitizen friendly

Try and adhere as closely as possible to the Angular commit messages guidelines.

Commitizen is a command line tool which can help with this:

npm install -g commitizen

Now, simply use git cz instead of git commit when committing.