Skip to content

Commit

Permalink
feat(setup): Remove bin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-le-singe committed Jan 11, 2017
1 parent 70ac440 commit 6256e0f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@ function cssnext() {
inquirer.prompt(questions)
.then(answers => (answers.setup ? cssnext() : sass()))
.then(() => {
_debug('This setup (bin/setup.js) will self-destruct 💥 .')
_debug('`bin` dir will self-destruct 💥 .')

try {
const file = './bin'
fs.removeSync(file)
_debug('Setup has completed successfully.')
} catch (err) {
_debug(err)
}
})
.catch((err) => {
_debug('Setup encountered an error.', err)
Expand Down

0 comments on commit 6256e0f

Please sign in to comment.