Source

grunt-download /

Filename Size Date modified Message
bin
tasks
test
13 B
15 B
1.0 KB
1.2 KB
1021 B
798 B

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.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.