Skip to content

Commit

Permalink
Fixed end of line problem with gulp-html-extract plugin on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
sohrabtaee committed Jul 5, 2018
1 parent d5a4fb2 commit 4af4afb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bower_components
node_modules
package-lock.json
yarn.lock
coverage
22 changes: 12 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
'use strict';

var gulp = require('gulp');
var eslint = require('gulp-eslint');
var htmlExtract = require('gulp-html-extract');
var stylelint = require('gulp-stylelint');
var find = require('gulp-find');
var replace = require('gulp-replace');
var expect = require('gulp-expect-file');
var grepContents = require('gulp-grep-contents');
var clip = require('gulp-clip-empty-files');
var git = require('gulp-git');
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const htmlExtract = require('gulp-html-extract');
const lec = require('gulp-line-ending-corrector');
const stylelint = require('gulp-stylelint');
const find = require('gulp-find');
const replace = require('gulp-replace');
const expect = require('gulp-expect-file');
const grepContents = require('gulp-grep-contents');
const clip = require('gulp-clip-empty-files');
const git = require('gulp-git');

gulp.task('lint', ['lint:js', 'lint:html', 'lint:css']);

Expand All @@ -34,6 +35,7 @@ gulp.task('lint:html', function() {
sel: 'script, code-example code',
strip: true
}))
.pipe(lec())
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"gulp-git": "^2.4.2",
"gulp-grep-contents": "0.0.1",
"gulp-html-extract": "^0.3.0",
"gulp-line-ending-corrector": "^1.0.2",
"gulp-replace": "^0.6.1",
"gulp-stylelint": "^7.0.0",
"stylelint": "^9.0.0",
Expand Down

0 comments on commit 4af4afb

Please sign in to comment.