在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):yasinkocak/gulp-svn开源软件地址(OpenSource Url):https://github.com/yasinkocak/gulp-svn开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):
UsageInstall
Examplevar 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, |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论