mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
20 lines
516 B
JavaScript
Executable File
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;})
|