pulsar/script/clean
2020-10-01 22:02:00 -05:00

20 lines
516 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict'
const cleanCaches = require('./lib/clean-caches')
const cleanDependencies = require('./lib/clean-dependencies')
const cleanOutputDirectory = require('./lib/clean-output-directory')
const killRunningAtomInstances = require('./lib/kill-running-atom-instances')
async function clean() {
killRunningAtomInstances()
return Promise.all([
cleanDependencies(),
cleanCaches(),
cleanOutputDirectory()
])
}
clean().then(() => {process.exit(0)}).catch((e) => {throw e;})