microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
prepare-for-1.13.3

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

gulp_scripts/cleaner.js

33lines · modeblame

b7b3768bbenjaminbi3 years ago1const del = require("del");
3016b3b0Ezio Li9 months ago2const GulpExtras = require("../tools/gulp-extras");
b7b3768bbenjaminbi3 years ago3
3016b3b0Ezio Li9 months ago4async function clean() {
b7b3768bbenjaminbi3 years ago5const pathsToDelete = [
6"src/**/*.js",
7"src/**/*.js.map",
8"test/**/*.js",
9"test/**/*.js.map",
10"out/",
11"dist",
12"!test/resources/sampleReactNativeProject/**/*.js",
bfb3ab36Ezio Li11 months ago13"!test/resources/newVersionReactNativeProject/**/*.js",
b7b3768bbenjaminbi3 years ago14".vscode-test/",
15"nls.*.json",
16"!test/smoke/**/*",
17];
3016b3b0Ezio Li9 months ago18
19const TIMEOUT_MS = 5000;
20
21return await GulpExtras.withTimeout(
22del(pathsToDelete, { force: true }),
23TIMEOUT_MS,
24{
25onTimeout: () => console.log("Timeout for clean up, will try on next step, but may cause other failures."),
26fallbackValue: [],
27}
28);
b7b3768bbenjaminbi3 years ago29}
30
31module.exports = {
32clean,
e4001e74benjaminbi3 years ago33};