Notify President Madagascar
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

grunt-download

0.2.0 • Public • Published

grunt-download

Downloads files via HTTP. Can download a list of files from an HTML5 manifest. My use-case is generating a static distribution of my webapp by downloading it from the local development server, which does minification/compilation/etc.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-download

Then add it to your project's grunt.js gruntfile, for example:

grunt.loadNpmTasks('grunt-download');
 
...
    download: {
        webapp_release: {
          url: 'http://localhost:8081/manifest.appcache',
          manifest: true,
          filename: 'webapp/dist/'
        },
        somefile: {
          url: 'http://localhost:8081/file.json',
          manifest: false,
          filename: 'webapp/dist/'
        },
    },
...

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013
Licensed under the MIT license.

Keywords

none

install

npm i grunt-download

Downloadsweekly downloads

175

version

0.2.0

license

none

repository

Gitbitbucket

last publish

collaborators

  • avatar