Skip to content

Commit

Permalink
Readd clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Oct 8, 2018
1 parent a627b8c commit d10bde0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ const spawn = require('cross-spawn');
const script = process.argv[2];
const args = process.argv.slice(3);
const path = require('path');
const rimraf = require('rimraf');

const appPath = (...paths) => path.join(process.cwd(), ...paths);

switch (script) {
case 'clean':
rimraf.sync(appPath('.nyc_output'));
rimraf.sync(appPath('build'));
rimraf.sync(appPath('coverage'));
break;
case 'start':
case 'test':
case 'build':
Expand Down

0 comments on commit d10bde0

Please sign in to comment.