grunt-qiniu-cdn

0.1.5 • Public • Published

grunt-qiniu-cdn

The best Grunt plugin ever.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-qiniu-cdn --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-qiniu');

The "qiniu" task

Overview

In your project's Gruntfile, add a section named qiniu to the data object passed into grunt.initConfig().

grunt.initConfig({
  qiniu: {
    options: {
      accessKey: '',
      secretKey: '',
      bucket: '',
      prefix: 'portal/',
      concurrency: 5
    },
    dist: {
      cwd: 'deployment/www',
      src: ['**/*.*']
    }
  },
});

Options

options.accessKey

Type: String Default value: undefined

options.secretKey

Type: String Default value: undefined

options.bucket

Type: String Default value: undefined

options.prefix

Type: String Default value: undefined

Readme

Keywords

Package Sidebar

Install

npm i grunt-qiniu-cdn

Weekly Downloads

0

Version

0.1.5

License

none

Last publish

Collaborators

  • gongxiancao