Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Grunt task for copying files to azure storage
JavaScript
branch: master

updated readme

latest commit 7f074b7ea3
litek authored
Failed to load latest commit information.
tasks initial commit
test initial commit
.gitignore initial commit
.jshintrc initial commit
Gruntfile.js initial commit
README.md updated readme
package.json

README.md

grunt-azure-storage

Grunt task for copying files to an azure storage blob.

Azure SDK uses by default the environment variables AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY. Custom connection arguments can be set in service.

Options and default values

{
  serviceOptions: [], // custom arguments to azure.createBlobService
  containerName: null, // container name, required
  containerDelete: false, // deletes container if it exists
  containerOptions: {publicAccessLevel: "blob"}, // container options
  metadata: {}, // file metadata properties
  gzip: false // gzip files
};

Gruntfile example

grunt.initConfig({
  'azure-storage': {
    options: {
      containerName: 'assets',
      gzip: true
    },
    files: 'assets/**/*'
  }
});
Something went wrong with that request. Please try again.