23 lines
400 B
Plaintext
23 lines
400 B
Plaintext
// cell clean - Remove build artifacts from modules/
|
|
|
|
var fd = use('fd')
|
|
|
|
if (!fd.stat('.cell/build').isDirectory) {
|
|
log.console("No build directory found")
|
|
$_.stop()
|
|
return
|
|
}
|
|
|
|
log.console("Cleaning build artifacts...")
|
|
|
|
// Remove the build directory
|
|
try {
|
|
fd.rm('.cell/build')
|
|
log.console("Build directory removed")
|
|
} catch (e) {
|
|
log.error(e)
|
|
}
|
|
|
|
log.console("Clean complete!")
|
|
|
|
$_.stop() |