1 | const { gulp, yargs: y } = require('../singleton');
|
2 | const vcs = require('../lib/vcs/vcs');
|
3 |
|
4 | if (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 | }
|