@gulp-plugin/eol
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @gulp-plugin/eol

    Weekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    6.82 kB

    Total Files

    6

    Last publish

    Collaborators

    • david_katz