Skip to content

Gulp plugin to ensure consistent end of line characters.

License

Notifications You must be signed in to change notification settings

gulp-plugin/eol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@gulp-plugin/eol npm (custom registry) GitHub Package Registry version

Build Coverage Status dependencies Status

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/'))
}