@gulp-plugin/eol
v1.1.0
Published
Gulp plugin to ensure consistent end of line characters.
Downloads
6
Readme
@gulp-plugin/eol
Gulp plugin to ensure consistent end of line characters.
Install
npm install --save-dev @gulp-plugin/eol
Usage
const typescript = require('gulp-typescript')
const sourcemaps = require('gulp-sourcemaps')
const eol = require('gulp-plugin/eol')
const project = typescript.createProject('tsconfig.json')
function build() {
src('./src/**/*.ts')
.pipe(eol({ eol: '\n' }))
.pipe(sourcemaps.init())
.pipe(project())
return compiled.js
.pipe(sourcemaps.write({ sourceRoot: file => path.relative(path.join(file.cwd, file.path), file.base) }))
.pipe(dest('build/'))
}