Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

grunt-assets-deployer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-assets-deployer

A simple grunt plugin to deploy assets to qiniu

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
15
87.5%
Maintainers
1
Weekly downloads
 
Created
Source

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');
};

Keywords

gruntplugin

FAQs

Package last updated on 27 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts