twolfson / grunt-zip

Zip and unzip files via a grunt plugin
MIT License
87 stars 19 forks source link

Multiple zips? #46

Closed r14n closed 6 years ago

r14n commented 6 years ago

Is it possible to have this task run twice with different options to generate two distinct zip files? If so, how would I do that?

twolfson commented 6 years ago

In Grunt, that is best achieved by defining 2 different tasks and defining a command to run both of them:

zip: {
  zip1: {src, dest},
  zip2: {src, dest}
}

// Run all `zip` tasks via `grunt zip`

// Or define a custom task (e.g. `grunt zip-custom`)
grunt.registerTask('zip-custom', ['zip:zip1', 'zip:zip2']);
r14n commented 6 years ago

thank you