We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9816ddb commit c2b3c72Copy full SHA for c2b3c72
scripts/cleanup.js
@@ -4,15 +4,11 @@ const utils = require('../src/utils');
4
5
async function cleanup(projectPath = 'a-demo-project') {
6
await settings.load();
7
-
8
const name = utils.string.normalizeName(projectPath);
9
10
- // Remove test folder
11
- console.log(`Deleting folder ${projectPath}`);
12
- utils.files.deleteDirRecursive(projectPath);
+ await githubHandler.deleteRepo(name, settings.githubAuth.user, settings.githubAuth.token);
13
14
- // Delete github project
15
- githubHandler.deleteRepo(name, settings.githubAuth.user, settings.githubAuth.token);
+ utils.files.deleteDirRecursive(projectPath);
16
}
17
18
cleanup(process.argv[2]);
0 commit comments