26 lines
487 B
Plaintext
26 lines
487 B
Plaintext
// cell clean - Remove build artifacts from global shop
|
|
|
|
var fd = use('fd')
|
|
var shop = use('shop')
|
|
|
|
var build_dir = shop.get_shop_path() + '/build'
|
|
|
|
if (!fd.is_dir(build_dir)) {
|
|
log.console("No build directory found at " + build_dir)
|
|
$_.stop()
|
|
return
|
|
}
|
|
|
|
log.console("Cleaning build artifacts...")
|
|
|
|
// Remove the build directory
|
|
try {
|
|
fd.rm(build_dir)
|
|
log.console("Build directory removed: " + build_dir)
|
|
} catch (e) {
|
|
log.error(e)
|
|
}
|
|
|
|
log.console("Clean complete!")
|
|
|
|
$_.stop() |