Skip to content

Commit 75e4965

Browse files
committed
Fixed broken build
1 parent edca1cb commit 75e4965

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

generators/app/sync_templates.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use strict';
22

3-
const renamer = require('renamer');
3+
44
const rimraf = require('rimraf');
5-
const async = require('async');
65
const path = require('path');
76
const mv = require('mv');
87
const mkdirp = require('mkdirp');
9-
const Git = require("nodegit");
8+
const clone = require("nodegit").Clone;
109
const replace = require("replace");
1110
const filter = require('filter-files');
1211
const findInFiles = require('find-in-files');
@@ -15,16 +14,16 @@ const Finder = require('fs-finder');
1514

1615
// Clone a given repository into the `./tmp` folder.
1716
// rimraf.sync(__dirname + '/templates')
18-
rimraf.sync(__dirname + '/tmp')
17+
rimraf.sync(__dirname + '/tmp');
1918
// mkdirp('./templates')
2019

21-
Git.Clone("https://github.com/googlesamples/android-architecture", "./tmp")
20+
clone("https://github.com/googlesamples/android-architecture", "./tmp")
2221
.then(function(repo) {
23-
checkOutAndCopy(repo,"todo-mvp")
22+
checkOutAndCopy(repo,"todo-mvp");
2423
// 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");
2827
// checkOutAndCopy(repo, "todo-databinding");
2928
})
3029
.catch(function(err) {

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var plumber = require('gulp-plumber');
1010
var coveralls = require('gulp-coveralls');
1111

1212
gulp.task('static', function () {
13-
return gulp.src('**/*.js')
13+
return gulp.src('generators/app/index.js')
1414
.pipe(excludeGitignore())
1515
.pipe(eslint())
1616
.pipe(eslint.format())
@@ -22,7 +22,7 @@ gulp.task('nsp', function (cb) {
2222
});
2323

2424
gulp.task('pre-test', function () {
25-
return gulp.src('generators/**/*.js')
25+
return gulp.src('generators/app/index.js')
2626
.pipe(excludeGitignore())
2727
.pipe(istanbul({
2828
includeUntested: true

0 commit comments

Comments
 (0)