2017-02-06 13:40:28 -05:00
|
|
|
// Imports
|
2018-05-10 08:56:07 -04:00
|
|
|
import {AIO_DOWNLOADS_DIR} from '../common/constants';
|
|
|
|
import {
|
|
|
|
AIO_ARTIFACT_PATH,
|
|
|
|
AIO_BUILDS_DIR,
|
|
|
|
AIO_GITHUB_ORGANIZATION,
|
|
|
|
AIO_GITHUB_REPO,
|
|
|
|
AIO_GITHUB_TOKEN,
|
|
|
|
} from '../common/env-variables';
|
2017-02-06 13:40:28 -05:00
|
|
|
import {BuildCleaner} from './build-cleaner';
|
|
|
|
|
|
|
|
// Run
|
|
|
|
_main();
|
|
|
|
|
|
|
|
// Functions
|
|
|
|
function _main() {
|
2018-05-10 08:56:07 -04:00
|
|
|
const buildCleaner = new BuildCleaner(
|
|
|
|
AIO_BUILDS_DIR,
|
|
|
|
AIO_GITHUB_ORGANIZATION,
|
|
|
|
AIO_GITHUB_REPO,
|
|
|
|
AIO_GITHUB_TOKEN,
|
|
|
|
AIO_DOWNLOADS_DIR,
|
|
|
|
AIO_ARTIFACT_PATH);
|
2017-02-06 13:40:28 -05:00
|
|
|
|
2018-05-12 10:39:16 -04:00
|
|
|
buildCleaner.cleanUp().catch(() => process.exit(1));
|
2017-02-06 13:40:28 -05:00
|
|
|
}
|