How to use gulp-zip - 9 common examples

To help you get started, we’ve selected a few gulp-zip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krmao / template / apps / app-template / web_gulp / build-script / Build.js View on Github external
zipHtml() {
        return gulp.src(this.module.zipSrcPathHtmls, {base: this.module.zipPathBaseHtmls})
            .pipe(zip(this.module.zipFileNameHtmls))
            .pipe(gulp.dest(this.module.zipPathOutput));
    }
github zalmoxisus / crossbuilder / gulp / tasks / compress.js View on Github external
const compress = (src, name, dest = './build') => () => {
  gulp.src(src)
    .pipe(zip(name))
    .pipe(gulp.dest(dest));
};
github honestbleeps / Reddit-Enhancement-Suite / gulpfile.babel.js View on Github external
globby.sync(['dist/*', '!dist/zip']).map(dir =>
			gulp.src(path.join(dir, '**/*'))
				.pipe(zip(`${path.basename(dir)}.zip`))
				.pipe(gulp.dest('dist/zip'))
		)
github SanderRonde / CustomRightClickMenu / gulpfile.ts View on Github external
static build() {
						return gulp
							.src([
								'build/**',
							])
							.pipe(zip('artifacts.build.zip'))
							.pipe(gulp.dest('./'));
					}
github CSSSR / csssr-project-template / tasks / zip.js View on Github external
gulp.task('zip', () => {
	const datetime = process.env.ZIP_DATE_TIME ? '-' + getDateTime() : '';
	const zipName = 'dist' + datetime + '.zip';

	gulp.src(['dist/**/*', '!dist/*.zip'])
		.pipe(zip(zipName))
		.pipe(gulp.dest('dist'));
});
github Fitbit / fitbit-sdk-toolchain / src / zip.ts View on Github external
export default function zip(
  filename: string,
  options?: gulpZip.GulpZipOptions,
) {
  return new pumpify.obj(
    vinylBuffer(),
    gulpDuplicates(),
    gulpZip(filename, options),
  );
}
github thecreation / gulp-starter-kit / tasks / archive.js View on Github external
gulp.task('archive', () => {
  return gulp
    .src(config.archive.source)
    .pipe(zip(`${config.version}.zip`))
    .pipe(gulp.dest(config.archive.build))
    .pipe(
      gulpif(
        config.enable.notify,
        notify({
          title: config.notify.title,
          message: 'Archive task complete',
        })
      )
    );
});

gulp-zip

ZIP compress files

MIT
Latest version published 1 year ago

Package Health Score

62 / 100
Full package analysis

Popular gulp-zip functions