UNPKG

242 BJavaScriptView Raw
1const sh = require( 'shelljs' );
2
3const git = {
4
5 /**
6 * Git clone repository.
7 * @param {String} url
8 * @param {String} dir
9 */
10 async clone( url, dir = '' ) {
11 await sh.exec( `git clone ${url} ${dir}` );
12 },
13
14};
15
16module.exports = git;