gulp-task-store
gulp tasks
Last updated 3 years ago by shenshuaijia .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-task-store 
SYNC missed versions from official npm registry.

API

rollup_task

  • Parameters:

    src : [String], filepath

    dest : [String], filepath

    moduleName : [String], default to be the file name

    babel_opts: [Object], optional, if you pass your own babel settings, you should install related plugins . Default plugins: babel-core、babel-plugin-external-helpers、babel-preset-es2015、babel-preset-stage-0

  • e.g.

var tasks = require('gulp-tasks');

gulp.task('rollup', function(){
  tasks.rollup_task({
    src: 'src/index.js',
    dest: 'dist/index.bundle.js',
    moduleName: 'myModule'
  });
});

postcss_task

  • Parameters:

    src: [String]

    dest: [String]

    cssnext: [Boolean], default to be false

    precss: [Boolean], default to be false

    pxtorem: [Boolean], default to be false

    pxtorem_opts: [Object]

  • e.g.

gulp.task('postcss', function(){
  tasks.postcss_task({
    src: 'src/css/index.scss',
    dest: 'dist/css/index.css',
    cssnext: true,
    precss: true,
    pxtorem: true,
    pxtorem_opts: {
      rootValue: 75,  //如果以750宽度视觉稿
  	  propWhiteList: []  //需要转换为rem的属性, []全部属性都转换
    }
  });
});

use cssnext、precss、pxtorem

clean_task

tasks.clean_task({
  src: <filepath>
});

jsmin_task

tasks.jsmin_task({
  src: <filepath>,
  dest: <filepath>
});

cssmin_task

tasks.cssmin_task({
  src: <filepath>,
  dest: <filepath>
});

imgmin_task

tasks.imgmin_task({
  src: <filepath>,
  dest: <filepath>
});

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |