Comments (3)
This is not the place to document Gulp conventions. See the Gulp docs on how to use Gulp.
from gulp-zip.
which I assume adds a timestamp to the output file
I'm not sure why you would assume that since the docs clearly says what it does:
Overrides the modification timestamp for all files added to the archive.
from gulp-zip.
I am speaking about the documentation of your wonderful plugin. Keep in mind, that there are many novices like me who learn by examples.
These plugins, for example, provide a few examples of the various options. https://www.npmjs.com/package/gulp-useref or https://www.npmjs.com/package/gulp-htmlbuild
In the documentation of Gulp Zip, it states:
modifiedTime
Type: Date
Default: undefined
Overrides the modification timestamp for all files added to the archive.
Tip: Setting it to the same value across executions enables you to create stable archives that change only when the contents of their entries change, regardless of whether those entries were "touched" or regenerated.
What would be the format of the "date"?
For example, in my project, I have the following. (I've added a little datestamp JS snippet I found on the web to append the date on the file name. )
function zipProject() {
return src(paths.zip.src)
.pipe(zip(`samba_project_${(new Date().toJSON().slice(0, 10))}.zip`))
.pipe(dest(paths.zip.dest));
};
How, would I define the "modifiedTime" option. Thanks.
from gulp-zip.
Related Issues (20)
- Replace gulp util
- Changelog HOT 1
- Feature Request: support Yazl's `options.mtime` to enable creating byte-for-byte identical zip archives across rebuilds HOT 2
- readable-stream throws error when using gulp-zip HOT 1
- Can't open zip on Mac OS HOT 7
- Unable to zip Windows "Junction" folders.
- yazl 2.5.0 broke gulp-zip HOT 1
- How to use the options configuration object HOT 1
- gulp-util removal request HOT 1
- gulp-zip change folder permission, from 755 to 666 HOT 6
- Can't install w/ npm HOT 1
- Remove gulp peer dependency? HOT 3
- Files without name are ignored during zip (e.g. ".txt") HOT 2
- yazl TypeError: jsDate.getDate is not a function when setting modfiedTime HOT 1
- How tooutput zip into source directory?
- Won't zip if folder name contains [square brackets] HOT 2
- FEATURE REQUEST: zip files recursively HOT 1
- Append files to existing zip HOT 1
- Deprecation of Gulp-util HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-zip.