Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivansanchez/gobble-zip
Zip files in your GobbleJS workflow
https://github.com/ivansanchez/gobble-zip
Last synced: 28 days ago
JSON representation
Zip files in your GobbleJS workflow
- Host: GitHub
- URL: https://github.com/ivansanchez/gobble-zip
- Owner: IvanSanchez
- Created: 2015-10-13T12:12:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-13T12:28:48.000Z (about 9 years ago)
- Last Synced: 2024-10-14T15:36:07.012Z (2 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gobble-zip
Gobble plugin to zip files/directories into a `.zip` file.
## Installation
I assume you already know the basics of [Gobble](https://github.com/gobblejs/gobble).
```bash
npm i -D gobble-zip
```## Usage
In your `gobblefile`, run the `zip` gobble transform with a `dest` option, like so:
```javascript
var gobble = require( 'gobble' );
module.exports = gobble( 'assets' ).transform( 'zip', {
dest: 'assets.zip'
});
```Aditionally, `gobble-zip` accepts the `files` and `sort` options, with the same
semantics as [`gobble-concat`](https://github.com/gobblejs/gobble-concat).## License
```
"THE BEER-WARE LICENSE":
wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
```