UNPKG

413 BJavaScriptView Raw
1const { gulp, yargs: y } = require('../singleton');
2const vcs = require('../lib/vcs/vcs');
3
4if (vcs.type === 'git') {
5 gulp.task('git:branch', () => {
6 const vcsTasks = require('../lib/vcs/vcs-tasks');
7 return vcsTasks.createGITBranch(y.argv.name);
8 });
9
10 gulp.task('git:eol', () => {
11 const vcsTasks = require('../lib/vcs/vcs-tasks');
12 return vcsTasks.changeLineEndings(y.argv.character);
13 });
14}