Esempio n. 1
0
gulp.task('wrap', function(){
	return gulp.src('index.js')
		.pipe(esnext())
		.pipe(wrap({ name: 'bind' }))
		.pipe(rename('binder.js'))
		.pipe(gulp.dest('.'));
});
Esempio n. 2
0
gulp.task('analysis', function(){
	return gulp.src(['index.js', 'spec.js'])
		.pipe(esnext())
		.pipe(jshint())
		.pipe(jshint.reporter('jshint-stylish'))
		.pipe(complexity());
});
Esempio n. 3
0
gulp.task('scripts', function() {
  gulp.src(paths.scripts)
    //.pipe(sourcemaps.init())
      .pipe(esnext())
      .pipe(es6ModuleTranspiler({type: 'amd'}))
      .pipe(concat('solar.js'))
    //.pipe(sourcemaps.write())
    .pipe(gulp.dest('js'))
    .pipe(connect.reload());
});
Esempio n. 4
0
gulp.task('es6-node', function() {

  return gulp.src(paths.src)
    .pipe(esperanto())
    .pipe(esnext({
      generator: false,
      modules: false
    }))
    .pipe(gulp.dest(paths.src_dest));
});
Esempio n. 5
0
var compileSources = function compileSources() {
    return gulp.src(["src/**/*.js", "src/**/*.jsx"])
    .pipe(plumber())
    .pipe(react())
    .pipe(rename({
        extname: ".js",
    }))
    .pipe(esnext())
    .pipe(gulp.dest("dist"));
};