shipit-assets
Asset syncing tasks for Shipit.
Features:
- Works via shipit-cli and grunt-shipit
Install
npm install shipit-assets
Usage
shipitfile.js
Example module { shipit; shipit;};
Push your local assets to remote:
shipit staging assets:push
Pull your remote assets to local:
shipit staging assets:pull
Gruntfile.js
Example grunt; grunt; grunt; grunt;
To run shipit-assets you have to call:
grunt shipit:staging assets:push
shipit.config.assets
)
Options (assets.paths
Type: Array
Paths to sync between remote and local. Paths are relative to project root.
assets.localPaths
Type: Array
If your local paths are mapped differently than remote, you may specify here. If specified, the array must have the same length as assets.paths
. Default: assets.paths
assets.options
Options to pass to shipit.remoteCopy
.
Workflow tasks
- assets:push
- Push assets from local to remote.
- Emit event "assetsPush".
- assets:pull
- Pull assets from remote to local.
- Emit event "assetsPull".
License
MIT