Skip to content

Instantly share code, notes, and snippets.

@Rafi993
Created February 25, 2017 07:02
Embed
What would you like to do?
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