Skip to content

Commit

Permalink
Remove gulp-bump dependency
Browse files Browse the repository at this point in the history
* Remove trim-newlines security dependency from using gulp-bump (not really needed)
  • Loading branch information
jadrake75 committed Jan 10, 2022
1 parent b3128ec commit 6f375aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 835 deletions.
11 changes: 2 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

var gulp = require('gulp');
var eslint = require('gulp-eslint');
var bump = require('gulp-bump');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var jest = require('@jest/core');
var packageJson = require('./package.json');

var DESTINATION = 'dist';

async function testWithJest() {
async function testSrc() {
const testResults = await jest.runCLI({json: false, config: 'jest-config.js'},['test'])
const { results } = testResults
const isTestFailed = !results.success;
Expand All @@ -48,12 +47,6 @@ gulp.task('copy', function() {
.pipe(gulp.dest(DESTINATION));
});

gulp.task('bump', function(){
gulp.src('./*.json')
.pipe(bump())
.pipe(gulp.dest('./'));
});

gulp.task('eslint', function () {
return gulp.src('src/**')
.pipe(eslint({
Expand All @@ -62,7 +55,7 @@ gulp.task('eslint', function () {
.pipe(eslint.format());
});

gulp.task('test', gulp.series(testWithJest));
gulp.task('test', gulp.series(testSrc));


gulp.task('default', gulp.series('eslint', 'test', 'copy', 'compress'));
Loading

0 comments on commit 6f375aa

Please sign in to comment.