1
1
'use strict' ;
2
2
3
- const renamer = require ( 'renamer' ) ;
3
+
4
4
const rimraf = require ( 'rimraf' ) ;
5
- const async = require ( 'async' ) ;
6
5
const path = require ( 'path' ) ;
7
6
const mv = require ( 'mv' ) ;
8
7
const mkdirp = require ( 'mkdirp' ) ;
9
- const Git = require ( "nodegit" ) ;
8
+ const clone = require ( "nodegit" ) . Clone ;
10
9
const replace = require ( "replace" ) ;
11
10
const filter = require ( 'filter-files' ) ;
12
11
const findInFiles = require ( 'find-in-files' ) ;
@@ -15,16 +14,16 @@ const Finder = require('fs-finder');
15
14
16
15
// Clone a given repository into the `./tmp` folder.
17
16
// rimraf.sync(__dirname + '/templates')
18
- rimraf . sync ( __dirname + '/tmp' )
17
+ rimraf . sync ( __dirname + '/tmp' ) ;
19
18
// mkdirp('./templates')
20
19
21
- Git . Clone ( "https://github.com/googlesamples/android-architecture" , "./tmp" )
20
+ clone ( "https://github.com/googlesamples/android-architecture" , "./tmp" )
22
21
. then ( function ( repo ) {
23
- checkOutAndCopy ( repo , "todo-mvp" )
22
+ checkOutAndCopy ( repo , "todo-mvp" ) ;
24
23
// checkOutAndCopy(repo,"todo-mvp-loaders");
25
- // checkOutAndCopy(repo,"todo-mvp-clean")
26
- // checkOutAndCopy(repo,"todo-mvp-dagger")
27
- // checkOutAndCopy(repo,"todo-mvp-contentproviders")
24
+ // checkOutAndCopy(repo,"todo-mvp-clean");
25
+ // checkOutAndCopy(repo,"todo-mvp-dagger");
26
+ // checkOutAndCopy(repo,"todo-mvp-contentproviders");
28
27
// checkOutAndCopy(repo, "todo-databinding");
29
28
} )
30
29
. catch ( function ( err ) {
0 commit comments