Create and extract nar archives
npm install gulp-nar> Create and extract nar archives from Gulp
Install nar as global package
``bash`
$ npm install -g nar
Install the task
`bash`
$ npm install gulp-nar --save-dev
`js
var gulp = require('gulp')
var nar = require('gulp-nar')
gulp.task('create', function () {
gulp.src('package.json')
.pipe(nar.create('releases/'))
})
gulp.task('create-executable', function () {
gulp.src('package.json')
.pipe(nar.createExecutable('releases/'))
})
gulp.task('extract', function () {
gulp.src('app.nar')
.pipe(nar.extract('app/'))
})
`
See [gulpfile.js][example] for more examples
Creates an archive according to the package.json configuration
- path string Destination directory for the nar archive. Default to current directoryobject
- options Archive creation options
Creates an executable binary-like archive
- path string Destination directory for the nar archive. Default to current directoryobject
- options Executable creation options
Extract archive content into a directory
- path string Destination directory for the extracted files. Default to current directoryobject` Archive extract options
- options
MIT © Tomas Aparicio
[travis]: https://travis-ci.org/h2non/gulp-nar
[gemnasium]: https://gemnasium.com/h2non/gulp-nar
[npm]: http://npmjs.org/package/gulp-nar
[example]: https://github.com/h2non/gulp-nar/blob/master/gulpfile.js