gulp-align
v1.0.0
Published
A gulp plugin which aligns 'require' statement in Javascript files
Downloads
3
Readme
gulp-align
A gulp plugin which aligns require
statements in javascript files.
Before:
var assert = require('chai').assert
var align = require('../index')
var rename = require('gulp-rename')
var fs = require('fs')
var path = require('path')
After:
var assert = require('chai').assert
var align = require('../index')
var rename = require('gulp-rename')
var fs = require('fs')
var path = require('path')
Usage
Install
npm install gulp gulp-align --save-dev
In your gulpfile.js
gulp.task('align', function () {
return gulp.src('./src/example.js')
.pipe(align())
.pipe(gulp.dest('./dist'))
})