@barchart/events-api-common
Advanced tools
Comparing version 1.4.2 to 1.4.3
const gulp = require('gulp'); | ||
const bump = require('gulp-bump'), | ||
const exec = require('child_process').exec, | ||
git = require('gulp-git'), | ||
gitStatus = require('git-get-status'), | ||
jasmine = require('gulp-jasmine'), | ||
jshint = require('gulp-jshint'); | ||
jshint = require('gulp-jshint'), | ||
prompt = require('gulp-prompt'); | ||
@@ -25,8 +26,29 @@ const fs = require('fs'); | ||
gulp.task('bump-version', () => { | ||
return gulp.src([ './package.json' ]) | ||
.pipe(bump({ type: 'patch' })) | ||
.pipe(gulp.dest('./')); | ||
gulp.task('bump-choice', (cb) => { | ||
const processor = prompt.prompt({ | ||
type: 'list', | ||
name: 'bump', | ||
message: 'What type of bump would you like to do?', | ||
choices: ['patch', 'minor', 'major'], | ||
}, (res) => { | ||
global.bump = res.bump; | ||
return cb(); | ||
}); | ||
return gulp.src(['./package.json']).pipe(processor); | ||
}); | ||
gulp.task('bump-version', (cb) => { | ||
exec(`npm version ${global.bump || 'patch'} --no-git-tag-version`, { | ||
cwd: './' | ||
}, (error) => { | ||
if (error) { | ||
cb(error); | ||
} | ||
cb(); | ||
}); | ||
}); | ||
gulp.task('commit-changes', () => { | ||
@@ -63,2 +85,3 @@ return gulp.src([ './', './package.json' ]) | ||
'ensure-clean-working-directory', | ||
'bump-choice', | ||
'bump-version', | ||
@@ -71,4 +94,4 @@ 'commit-changes', | ||
gulp.task('lint', () => { | ||
return gulp.src([ './**/*.js', './test/specs/**/*.js', '!./node_modules/**', '!./test/dist/**' ]) | ||
.pipe(jshint({'esversion': 6})) | ||
return gulp.src([ './**/*.js', './test/specs/**/*.js', '!./node_modules/**' ]) | ||
.pipe(jshint({ esversion: 9 })) | ||
.pipe(jshint.reporter('default')) | ||
@@ -75,0 +98,0 @@ .pipe(jshint.reporter('fail')); |
{ | ||
"name": "@barchart/events-api-common", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Common classes used by the Barchart Event Tracking System", | ||
@@ -16,3 +16,3 @@ "author": { | ||
"dependencies": { | ||
"@barchart/common-js": "^3.5.1", | ||
"@barchart/common-js": "^3.8.0", | ||
"uuid": "^3.4.0" | ||
@@ -23,9 +23,9 @@ }, | ||
"gulp": "^4.0.2", | ||
"gulp-bump": "~1.0.0", | ||
"gulp-git": "^2.9.0", | ||
"gulp-jasmine": "^2.2.1", | ||
"gulp-jshint": "~2.1.0", | ||
"jshint": "2.9.5" | ||
"gulp-prompt": "^1.2.0", | ||
"jshint": "^2.10.3" | ||
}, | ||
"license": "MIT" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29215
706
1
Updated@barchart/common-js@^3.8.0