-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1990751
commit ccd0a32
Showing
7 changed files
with
213 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
'use strict'; | ||
const gulp = require('gulp'); | ||
const zip = require('.'); | ||
import gulp from 'gulp'; | ||
import zip from './index.js'; | ||
|
||
exports.default = () => ( | ||
gulp.src('fixture/fixture.txt') | ||
export default function main() { | ||
return gulp.src('fixture/fixture.txt') | ||
.pipe(zip('test.zip')) | ||
.pipe(gulp.dest('dest')) | ||
); | ||
.pipe(gulp.dest('dest')); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com) | ||
Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,16 @@ | |
"description": "ZIP compress files", | ||
"license": "MIT", | ||
"repository": "sindresorhus/gulp-zip", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "[email protected]", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=18" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
|
@@ -28,19 +31,19 @@ | |
"file" | ||
], | ||
"dependencies": { | ||
"get-stream": "^5.2.0", | ||
"plugin-error": "^1.0.1", | ||
"through2": "^3.0.1", | ||
"vinyl": "^2.1.0", | ||
"get-stream": "^8.0.1", | ||
"gulp-plugin-extras": "^0.3.0", | ||
"vinyl": "^3.0.0", | ||
"yazl": "^2.5.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "^2.3.0", | ||
"ava": "^5.3.1", | ||
"decompress-unzip": "^3.0.0", | ||
"easy-transform-stream": "^1.0.1", | ||
"gulp": "^4.0.2", | ||
"vinyl-assign": "^1.2.1", | ||
"vinyl-file": "^3.0.0", | ||
"xo": "^0.24.0" | ||
"vinyl-file": "^5.0.0", | ||
"xo": "^0.56.0" | ||
}, | ||
"peerDependencies": { | ||
"gulp": ">=4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.