0.0.3 • Published 10 years ago

grunt-assets-deployer v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

grunt-assets-deployer Build Status NPM version

Photo

About

因为个人Ghost博客( http://track-novtopro.rhcloud.com/ )是在OpenShift上,由于总所周知的原因,访问比较慢,所以想把一些静态资源放在七牛云存储。开始的时候我想使用 grunt-qiniu-deploy( https://github.com/chenboxiang/grunt-qiniu-deploy ),但是作者有一段时间没有更新,并且不支持同名文件的更新操作, 所以自己基于他的代码写了这么个Grunt plugin,在此对他表示感谢。

Usage

'use strict';

var config = require('./test/config');

module.exports = function (grunt) {

  grunt.initConfig({
    qiniu: {
      options: {
        ACCESS_KEY: config.ACCESS_KEY,
        SECRET_KEY: config.SECRET_KEY,
        bucket_name: config.bucket_name,
        domain: config.domain
      },

      resources: [
        {
          cwd: 'test/fixtures',
          prefix: 'public/',
          pattern: '**/*.*'
        }
      ]
    }
  });

  grunt.loadTasks('tasks');
  grunt.loadTasks('grunt-assets-deployer');
  
  grunt.registerTask('qiniu');
};
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago