-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Create npm-run-clean.js script (#1177)
This allows use of globs without risk of shell interference, makes it easier to read the list of delete targets.
- Loading branch information
1 parent
b59fc8f
commit 0fc93d9
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
|
||
const { promisify } = require('util') | ||
const rimraf = promisify(require('rimraf')) | ||
|
||
Promise.all([ | ||
'**/.nyc_output', | ||
'node_modules/.cache', | ||
'.self_coverage', | ||
'test/**/.cache', | ||
'test/fixtures/cli/coverage', | ||
'test/fixtures/cli/fakebin/node', | ||
'test/fixtures/cli/fakebin/npm', | ||
'test/fixtures/cli/foo-cache', | ||
'test/fixtures/cli/nyc-config-js/node_modules', | ||
'test/temp-dir-*', | ||
'self-coverage' | ||
].map(f => rimraf(f, { cwd: __dirname }))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters