# cartridge-copy-assets

> Copy module for the cartridge project

Latest version **3.0.0** (published 2018-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install cartridge-copy-assets
pnpm add cartridge-copy-assets
yarn add cartridge-copy-assets
bun add cartridge-copy-assets
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-11-29 |
| First published | 2016-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Code Computerlove |
| Maintainers | codecomputerlove |
| Keywords | gulp, dependency, cartridge, cartridge-module, cartridge-task |

## Links

- npm: https://www.npmjs.com/package/cartridge-copy-assets
- Repository: https://github.com/cartridge/cartridge-copy-assets
- Issues: https://github.com/cartridge/cartridge-copy-assets/issues
- npm.io page: https://npm.io/package/cartridge-copy-assets

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^4.3.2
- [cartridge-module-util](https://npm.io/package/cartridge-module-util.md) ~0.4.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2018-11-29
- 2.0.1 — 2017-08-15
- 2.0.0 — 2017-01-30
- 1.0.0 — 2016-05-31

## README

# Cartridge Copy Assets [![Build Status](https://travis-ci.org/cartridge/cartridge-copy-assets.svg?branch=master)](https://travis-ci.org/cartridge/cartridge-copy-assets)

> [Copy Assets](https://github.com/cartridge/cartridge-copy-assets) expansion pack for  [Cartridge](https://github.com/cartridge/cartridge)


To use this module, you will need [cartridge-cli](https://github.com/cartridge/cartridge-cli) installed and have a cartridge project setup.

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

## Maintainers

| Name          | Github Profile                  |
| ------------- |---------------------------------|
| Matthew Claffey  | [code-mattclaffey](https://github.com/code-mattclaffey) |
| Tristan Ashley  | [tawashley](https://github.com/tawashley) |


## 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](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
Try and adhere as closely as possible to the [Angular commit messages guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-git-commit-guidelines).

[Commitizen](https://github.com/commitizen/cz-cli) is a command line tool which can help with this:
```sh
npm install -g commitizen
```
Now, simply use `git cz` instead of `git commit` when committing.

---
_Source: https://npm.io/package/cartridge-copy-assets · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
