gulp-qndn

0.0.4 • Public • Published

gulp-qndn

Qiniu DN gulp tasks.

Install

npm install --save-dev gulp-react

Usage

var gulp = require('gulp');
var upload = require('gulp-qndn').upload;
 
var qnOptions = {
  accessKey: 'your access key',
  secretKey: 'your secret key',
  bucket: 'your bucket name',
  domain: 'http://xxxx.xxx.xx.glb.clouddn.com'
};
 
gulp.task('default', function () {
  return gulp.src('template.jsx')
    .pipe(upload({qn: qnOptions}))
    .pipe(gulp.dest('dist'));
});

API

.upload(options)

options.qn

object Qinniu DN config, see qn docs.

options.prefix

string file path prefix, default ''.

options.flatten

bool, flatten file path or not, default false.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3
  • 0.0.3
    1

Package Sidebar

Install

npm i gulp-qndn

Weekly Downloads

4

Version

0.0.4

License

MIT

Last publish

Collaborators

  • minwe