Skip to content

Instantly share code, notes, and snippets.

@Rafi993
Created February 25, 2017 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rafi993/8f43b0aecc109556bffdbfac9108bd99 to your computer and use it in GitHub Desktop.
Save Rafi993/8f43b0aecc109556bffdbfac9108bd99 to your computer and use it in GitHub Desktop.
const T = require(‘./task’),
  gulp = require(‘gulp’);
// The transpiling Task
gulp.task(‘transpile’, ()=>
  gulp.src([‘./app.js’])
  .pipe(T.transpiler)
  .pipe(gulp.dest(‘./dist’)));
// styling Task
gulp.task(‘style’, ()=>
 gulp.src([‘./scss/**/*.scss’])
 .pipe(T.styler)
 .pipe(gulp.dest(‘./dist’)));
// Default Task
gulp.task(‘default’, ['transpile', 'style'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment