pulsar/script/clean

20 lines
516 B
Plaintext
Raw Normal View History

2016-08-02 16:31:05 +03:00
#!/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')
2020-10-02 06:02:00 +03:00
async function clean() {
killRunningAtomInstances()
return Promise.all([
cleanDependencies(),
cleanCaches(),
cleanOutputDirectory()
])
}
clean().then(() => {process.exit(0)}).catch((e) => {throw e;})