microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
gulp_scripts/cleaner.js
21lines · modeblame
b7b3768bbenjaminbi3 years ago | 1 | const del = require("del"); |
| 2 | | |
| 3 | function clean() { | |
| 4 | const pathsToDelete = [ | |
| 5 | "src/**/*.js", | |
| 6 | "src/**/*.js.map", | |
| 7 | "test/**/*.js", | |
| 8 | "test/**/*.js.map", | |
| 9 | "out/", | |
| 10 | "dist", | |
| 11 | "!test/resources/sampleReactNativeProject/**/*.js", | |
| 12 | ".vscode-test/", | |
| 13 | "nls.*.json", | |
| 14 | "!test/smoke/**/*", | |
| 15 | ]; | |
| 16 | return del(pathsToDelete, { force: true }); | |
| 17 | } | |
| 18 | | |
| 19 | module.exports = { | |
| 20 | clean, | |
e4001e74benjaminbi3 years ago | 21 | }; |