grunt-deploy-asset
部署静态文件到远程CDN服务器(当前只支持"七牛")
Getting Started
This plugin requires Grunt.
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-deploy-asset --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "da" task
Overview
In your project's Gruntfile, add a section named da
to the data object passed into grunt.initConfig()
.
grunt
Options
Based on deploy-asset project's options
Release History
-
2015-04-18 1.0.0
- 单独写了一个 deploy-asset 模块,所以此插件完全依赖于它了
- 从以前的
deployAsset
task 改成了da
task,简单明了
-
2015-01-06 0.0.5
- 七牛的域名可指定
- 配置 deleteUploaded 默认改为 false
-
2014-12-09 0.0.4
- 添加配置
mapUpload
- 添加配置
overwrite
- 添加配置
-
2014-12-08 0.0.3
- 添加配置
ignoreAssetNotExist
- 添加配置
ignoreUploadAssets
- 添加配置
assetMapJsonFile
- 如果静态资源路径中包含
<...>
或{...}
,并且资源不存在,则忽略此资源,因为这可能是一些动态模板文件的变量
- 添加配置
-
2014-11-30 0.0.2
- 支持 angular 中的 templateUrl 处理.
-
2014-11-29 0.0.1
- 首次发布.