Socket
Socket
Sign inDemoInstall

build-url

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-url - npm Package Compare versions

Comparing version 0.0.6 to 0.0.9

37

gulpfile.js
const gulp = require('gulp');
const uglify = require('gulp-uglify');
const rename = require('gulp-rename');
const git = require('gulp-git');
const bump = require('gulp-bump');
const filter = require('gulp-filter');
const tagVersion = require('gulp-tag-version');
const inc = (importance) => {
return gulp.src('./package.json')
.pipe(bump({ type: importance }))
.pipe(gulp.dest('.'))
.pipe(git.commit('Bump version'))
.pipe(filter('package.json'))
.pipe(tagVersion());
};
gulp.task('uglify', () => {

@@ -21,3 +34,27 @@ gulp.src('./src/build-url.js')

gulp.task('patch', () => {
return inc('patch');
});
gulp.task('feature', () => {
return inc('minor');
});
gulp.task('release', () => {
return inc('major');
});
gulp.task('publish', () => {
if (process.argv.indexOf('--patch') !== -1) {
gulp.run('patch');
}
if (process.argv.indexOf('--feature') !== -1) {
gulp.run('minor');
}
if (process.argv.indexOf('--release') !== -1) {
gulp.run('release');
}
});
gulp.task('build', ['uglify', 'copy']);
gulp.task('default', ['build', 'watch']);

6

package.json
{
"name": "build-url",
"version": "0.0.6",
"version": "0.0.9",
"description": "A small library that builds a URL given it's components",

@@ -27,3 +27,7 @@ "main": "./dist/build-url.js",

"gulp": "3.9.0",
"gulp-bump": "1.0.0",
"gulp-filter": "3.0.1",
"gulp-git": "1.6.0",
"gulp-rename": "1.2.2",
"gulp-tag-version": "1.3.0",
"gulp-uglify": "1.5.1",

@@ -30,0 +34,0 @@ "jasmine": "2.4.1"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc