Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-svn

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-svn

SVN plugin for gulp (gulpjs.com)

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#gulp-svn NPM version

Packagegulp-svn
DescriptionSVN plugin for Gulp
Node Version>= 0.11.12
Gulp Version3.x

Usage

Install

npm install gulp-svn --save

Example

var gulp = require('gulp')
var svn = require('gulp-svn')

// Run svn add
gulp.task('add', () => {
    return svn.add('/file.js')
}

// Run svn add with error
gulp.task('add', () => {
    return svn.add('./file.js', (err) => {
        if(err) throw err
    })
})

// Run svn add with options
gulp.task('add', () => {
    return svn.add('./file.js', {args: '--force'}, (err) => {
        if(err) throw err
    })
})

// Run svn revert some file
gulp.task('revert-file', () => {
    return svn.revert('somefile.js', (err) => {
        if(err) throw err
    })
})

// Run svn revert with some directory recursively
gulp.task('revert', () => {
    return svn.revert('directory', { args: '-R' }, (err) => {
        if(err) throw err
    })
})

// Run svn commit
gulp.task('commit', () => {
    return svn.commit('Initial commit', (err) => {
        if(err) throw err
    })
})

// Run svn tag
gulp.task('tag', () => {
    svn.tag('version-0.0.1', 'Tagged commit', (err) => {
        if(err) {
            throw err
        }
    })
})

// Run gulp
gulp.task('default',['add', 'commit'])

Synchronous tasks are also available, suffixed with 'Sync'. For instance use the task name, moveSync instead of move.

Keywords

FAQs

Package last updated on 18 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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