UNPKG

create-instantsearch-app

Version:

⚡️ Build InstantSearch apps at the speed of thought

15 lines (10 loc) 380 B
const util = require('util'); const exec = util.promisify(require('child_process').exec); const chalk = require('chalk'); module.exports = async function clean(config) { const logger = config.silent ? { log() {}, error() {} } : console; logger.log(); logger.log(`✨ Cleaning up ${chalk.green(config.path)}.`); logger.log(); await exec(`rm -rf ${config.path}`); };