i’m trying to remove all .dot
files, except .git
and all *.js
except one exception.js
, but i’m failing
install
git clone [email protected]:iamstarkov/rimraf-test.git
cd rimraf-test
test
npm test # it fails
can anybody help me?
i’m trying to remove all .dot
files, except .git
and all *.js
except one exception.js
, but i’m failing
git clone [email protected]:iamstarkov/rimraf-test.git
cd rimraf-test
npm test # it fails
can anybody help me?
var globby = require('globby');
var rimraf = require('rimraf');
globby(['*', '!authors.js', '!.git', '!dump'])
.then(function then(paths) {
paths.map(function map(item) {
rimraf.sync(item);
});
});
© 2022 - 2024 — McMap. All rights reserved.