gulpur
v1.0.0
Published
gulp with Traceur gulpfiles
Downloads
4
Readme
gulpur
gulp with ES.next, using Traceur
gulpur-friendly gulpfile:
var gulp = require('gulp');
var header = require('gulp-header');
var {license} = require('./package.json');
var banner = `\
/*!
* example.js
* Licensed under ${ license }
*/`;
gulp.task('script', () => {
gulp.src(['src/*.js'])
.pipe(header(banner))
.pipe(gulp.dest('lib'));
});
Usual gulpfile:
var gulp = require('gulp');
var header = require('gulp-header');
var license = require('./package.json').license;
var banner = [
'/*!',
' * example.js',
' * Licensed under ' + license,
' */'
].join('\n');
gulp.task('script', function() {
gulp.src(['src/*.js'])
.pipe(header(banner))
.pipe(gulp.dest('lib'));
});
Installation
npm install -g gulp gulpur
Usage
- Write your gulpfile.js in ECMAScript 6 syntax.
- Run
gulpur
command.
LICENSE
Copyright (c) 2014 Shinnosuke Watanabe
Licensed under the MIT License.