Giter Site home page Giter Site logo

Comments (3)

sindresorhus avatar sindresorhus commented on June 16, 2024

This is not the place to document Gulp conventions. See the Gulp docs on how to use Gulp.

from gulp-zip.

sindresorhus avatar sindresorhus commented on June 16, 2024

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.

SamuelMiller avatar SamuelMiller commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.