1.1.0 • Published 3 years ago

@gulp-plugin/eol v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

3 years ago