Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 577ec8a

Browse files
committed
Remove rimraf
1 parent 279b0e3 commit 577ec8a

File tree

5 files changed

+6
-20
lines changed

5 files changed

+6
-20
lines changed

build/gulp/tasks/perf.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { series, task } from 'gulp'
44
import _ from 'lodash'
55
import ProgressBar from 'progress'
66
import puppeteer from 'puppeteer'
7-
import rimraf from 'rimraf'
7+
import del from 'del'
88
import { argv } from 'yargs'
99
import markdownTable from 'markdown-table'
1010

@@ -109,9 +109,7 @@ const createMarkdownTable = (
109109
])
110110
}
111111

112-
task('perf:clean', cb => {
113-
rimraf(paths.perfDist(), cb)
114-
})
112+
task('perf:clean', () => del(paths.perfDist()))
115113

116114
task('perf:build', cb => {
117115
webpackPlugin(require('../../../build/webpack.config.perf').default, cb)

build/gulp/tasks/test-e2e.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { task, series } from 'gulp'
22
import * as yargs from 'yargs'
3-
import rimraf from 'rimraf'
3+
import del from 'del'
44
import config from '../../../config'
55
import webpackPlugin from '../plugins/gulp-webpack'
66

@@ -15,9 +15,7 @@ const argv = yargs
1515
.option('testNamePattern', { alias: 't' })
1616
.option('testFilePattern', { alias: 'F' }).argv
1717

18-
task('test:e2e:clean', cb => {
19-
rimraf(paths.e2eDist(), cb)
20-
})
18+
task('test:e2e:clean', () => del(paths.e2eDist()))
2119

2220
task('test:e2e:build', cb => {
2321
webpackPlugin(require('../../../build/webpack.config.e2e').default, cb)

build/gulp/tasks/test-projects.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from 'path'
66
import portfinder from 'portfinder'
77
import puppeteer from 'puppeteer'
88
import sh from '../sh'
9-
import rimraf from 'rimraf'
9+
import del from 'del'
1010

1111
import config from '../../../config'
1212
import tmp from 'tmp'
@@ -87,7 +87,7 @@ const createReactApp = async (atTempDirectory: string, appName: string): Promise
8787
await runIn(tempUtilProjectPath)(`yarn create-react-app ${appProjectPath} --typescript`)
8888
} finally {
8989
// remove temp util directory
90-
rimraf.sync(tempUtilProjectPath)
90+
del.sync(tempUtilProjectPath)
9191
}
9292

9393
return appProjectPath

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"@types/react-dom": "^16.8.3",
8181
"@types/react-is": "^16.7.1",
8282
"@types/react-router-dom": "^4.3.4",
83-
"@types/rimraf": "^2.0.2",
8483
"@types/webpack-dev-middleware": "^2.0.1",
8584
"@types/webpack-hot-middleware": "^2.16.3",
8685
"babel-loader": "^8.0.6",
@@ -144,7 +143,6 @@
144143
"react-vis": "^1.11.6",
145144
"read-package-json": "^2.0.13",
146145
"request-promise-native": "^1.0.5",
147-
"rimraf": "^2.6.1",
148146
"satisfied": "^1.1.1",
149147
"screener-runner": "^0.10.43",
150148
"semver": "^6.2.0",

yarn.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4586,14 +4586,6 @@
45864586
"@types/prop-types" "*"
45874587
csstype "^2.2.0"
45884588

4589-
"@types/rimraf@^2.0.2":
4590-
version "2.0.2"
4591-
resolved "https://registry.yarnpkg.com/@types/rimraf/-/rimraf-2.0.2.tgz#7f0fc3cf0ff0ad2a99bb723ae1764f30acaf8b6e"
4592-
integrity sha512-Hm/bnWq0TCy7jmjeN5bKYij9vw5GrDFWME4IuxV08278NtU/VdGbzsBohcCUJ7+QMqmUq5hpRKB39HeQWJjztQ==
4593-
dependencies:
4594-
"@types/glob" "*"
4595-
"@types/node" "*"
4596-
45974589
"@types/serve-static@*":
45984590
version "1.13.2"
45994591
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.2.tgz#f5ac4d7a6420a99a6a45af4719f4dcd8cd907a48"

0 commit comments

Comments
 (0)