Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / src / bundle / clean.ts
Size: Mime:
/**
 * @fileoverview removes any exisitng build output.
 * @file side-effect-only
 */

import trash from 'trash'
import { resolveToRoot } from '../resolveToRoot'
import config from '../oneConfig/getConfigForEnv'

function clean() {
  const buildOutputPath = config('buildOutputPath')
  const outputPath = resolveToRoot(buildOutputPath)

  trash(outputPath).then(() => {
    console.log(`Cleaned ${outputPath}`)
  })
}

clean()