Skip to content

Commit

Permalink
Fix indenting for lint check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotNB committed Apr 1, 2022
1 parent 97eecaa commit 87a7623
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,40 @@ const coverallsCoverageLcovPath = `${coverallsCoverageDirPath}/lcov.info`;
const coverallsBinPath = './node_modules/coveralls/bin/coveralls.js';
const coverallsCommand = (process.platform === 'win32')
// Windows (we have to resolve the paths).
? `nyc report --reporter=lcov`
+ ` && type ${path.resolve(coverallsCoverageLcovPath)} | ${path.resolve(coverallsBinPath)}`
+ ` && rmdir /s /q ${path.resolve(coverallsCoverageDirPath)}`
? `nyc report --reporter=lcov`
+ ` && type ${path.resolve(coverallsCoverageLcovPath)} | ${path.resolve(coverallsBinPath)}`
+ ` && rmdir /s /q ${path.resolve(coverallsCoverageDirPath)}`
// Linux.
: `nyc report --reporter=lcov`
+ ` && cat ${coverallsCoverageLcovPath} | ${coverallsBinPath}`
+ ` && rm -rf ${coverallsCoverageDirPath}`;
: `nyc report --reporter=lcov`
+ ` && cat ${coverallsCoverageLcovPath} | ${coverallsBinPath}`
+ ` && rm -rf ${coverallsCoverageDirPath}`;

gulp.task('default', (done) => gulp.src([observableSlimPath, proxyPath])
.pipe(babel({
presets: ['@babel/preset-env'],
sourceType: 'script' // Prevent insertion of "use strict".
}))
.pipe(useref())
.pipe(uglify())
.pipe(rename({
suffix: '.min' // Add .min to the minified filename.
}))
.pipe(gulp.dest('./')) // Write it to the current directory.
.on('end', done)
.pipe(babel({
presets: ['@babel/preset-env'],
sourceType: 'script' // Prevent insertion of "use strict".
}))
.pipe(useref())
.pipe(uglify())
.pipe(rename({
suffix: '.min' // Add .min to the minified filename.
}))
.pipe(gulp.dest('./')) // Write it to the current directory.
.on('end', done)
);

gulp.task('test', (done) => gulp.src([testPath])
.pipe(mocha({
compilers: babel
}))
.on('end', done)
.pipe(mocha({
compilers: babel
}))
.on('end', done)
);

gulp.task('coveralls', shell.task([coverallsCommand]));

gulp.task('lint', (done) => gulp.src([observableSlimPath, proxyPath, testPath])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failOnError()) // Brick on failure to be super strict.
.on('end', done)
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failOnError()) // Brick on failure to be super strict.
.on('end', done)
);
2 changes: 1 addition & 1 deletion observable-slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var ObservableSlim = (function() {
Object.defineProperty(target, "__length", { enumerable: false, value: target.length, writable: true });
else
target.__length = target.length;
}
}

var changes = [];

Expand Down

0 comments on commit 87a7623

Please sign in to comment.