Skip to content

Commit

Permalink
Fix small bug in clean + some user friendly logging in new_project
Browse files Browse the repository at this point in the history
  • Loading branch information
janedegtiareva committed Mar 26, 2019
1 parent b8dfbbe commit aef9c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ gulp.task('clean', async function(done) {
rimraf(yargs.argv.out_dir, response => resolve(response));
})};
await rmDirFn();
console.log("clean done");
console.log("Clean complete.");
done();
});

Expand Down Expand Up @@ -131,7 +131,6 @@ async function deployContractAndWaitForTransaction(accountId, data, near) {
return waitResult;
}


function generateNearFileFullPath(fileName) {
return "../" + yargs.argv.out_dir + "/" + generateNearFileName(fileName);
}
Expand Down
3 changes: 2 additions & 1 deletion near
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ const clean = {
console.log(e.error);
});
if (gulp.task('clean')) {
const result = gulp.task('clean')(argv).catch(console.log);
const result = gulp.task('clean')(() => {})
.catch(console.log);
} else {
throw "Unexpected error: clean task not found in gulpfile."
}
Expand Down

0 comments on commit aef9c22

Please sign in to comment.