Skip to content

Commit 5a6092d

Browse files
committed
Replaces 'rm -rf' with rimraf.
1 parent a3bb9f5 commit 5a6092d

File tree

4 files changed

+42
-38
lines changed

4 files changed

+42
-38
lines changed

packages/graphql-playground-electron/package.json

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,6 @@
1111
"url": "graph.cool"
1212
},
1313
"main": "lib/main.js",
14-
"build": {
15-
"fileAssociations": [
16-
{
17-
"ext": "graphql",
18-
"name": "GraphQL",
19-
"description": "GraphQL file",
20-
"role": "Editor"
21-
}
22-
]
23-
},
24-
"scripts": {
25-
"build-ts": "rm -rf lib && tsc --target es5",
26-
"build-webpack": "rm -rf ./dist && NODE_ENV=production GRAPHQL_ENDPOINT=$BACKEND_ADDR/system webpack --config webpack.config.build.js && cp -r static/* dist",
27-
"build": "npm run build-ts && npm run build-webpack && cp -r dist lib && rm -rf ./build-electron",
28-
"mac": "npm run build && electron-builder -m",
29-
"release": "npm run build && electron-builder -lmw",
30-
"library": "rm -rf .happypack && NODE_ENV=production webpack --config webpack.library.js -p",
31-
"lint": "tslint \"src/**/*.ts{,x}\" && lint-staged",
32-
"start": "yarn build-ts && concurrently \"yarn react-start\" \"wait-on http://localhost:4040/ && yarn electron-start\"",
33-
"react-start": "webpack-dev-server --hot --profile --history-api-fallback --host 0.0.0.0 --port 4040",
34-
"electron-start": "electron lib/main",
35-
"stats": "NODE_ENV=production webpack --config webpack.library.js --profile --json > stats.json",
36-
"test": "npm run lint",
37-
"precommit": "lint-staged",
38-
"prettier": "prettier --single-quote --no-semi --trailing-comma all --write '*.{js,ts,tsx}' 'src/**/*.{js,ts,tsx}'"
39-
},
40-
"lint-staged": {
41-
"*.{ts,tsx}": [
42-
"prettier --single-quote --no-semi --trailing-comma all --write",
43-
"tslint",
44-
"git add"
45-
]
46-
},
47-
"pre-push": [
48-
"test-quick"
49-
],
5014
"build": {
5115
"appId": "cool.graph.playground",
5216
"mac": {
@@ -92,6 +56,32 @@
9256
"role": "Editor"
9357
}
9458
},
59+
"scripts": {
60+
"build-ts": "rimraf lib && tsc --target es5",
61+
"build-webpack": "rimraf ./dist && NODE_ENV=production GRAPHQL_ENDPOINT=$BACKEND_ADDR/system webpack --config webpack.config.build.js && cp -r static/* dist",
62+
"build": "npm run build-ts && npm run build-webpack && cp -r dist lib && rimraf ./build-electron",
63+
"mac": "npm run build && electron-builder -m",
64+
"release": "npm run build && electron-builder -lmw",
65+
"library": "rimraf .happypack && NODE_ENV=production webpack --config webpack.library.js -p",
66+
"lint": "tslint \"src/**/*.ts{,x}\" && lint-staged",
67+
"start": "yarn build-ts && concurrently \"yarn react-start\" \"wait-on http://localhost:4040/ && yarn electron-start\"",
68+
"react-start": "webpack-dev-server --hot --profile --history-api-fallback --host 0.0.0.0 --port 4040",
69+
"electron-start": "electron lib/main",
70+
"stats": "NODE_ENV=production webpack --config webpack.library.js --profile --json > stats.json",
71+
"test": "npm run lint",
72+
"precommit": "lint-staged",
73+
"prettier": "prettier --single-quote --no-semi --trailing-comma all --write '*.{js,ts,tsx}' 'src/**/*.{js,ts,tsx}'"
74+
},
75+
"lint-staged": {
76+
"*.{ts,tsx}": [
77+
"prettier --single-quote --no-semi --trailing-comma all --write",
78+
"tslint",
79+
"git add"
80+
]
81+
},
82+
"pre-push": [
83+
"test-quick"
84+
],
9585
"dependencies": {
9686
"classnames": "^2.2.5",
9787
"date-fns": "^1.28.5",
@@ -155,6 +145,7 @@
155145
"react-addons-test-utils": "^15.3.2",
156146
"react-test-renderer": "^15.3.2",
157147
"redux-mock-store": "^1.2.1",
148+
"rimraf": "^2.6.2",
158149
"style-loader": "^0.18.2",
159150
"svgo-loader": "^1.1.0",
160151
"ts-loader": "^2.3.2",

packages/graphql-playground-electron/yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6135,6 +6135,12 @@ rimraf@2, rimraf@^2.2.8, rimraf@^2.4.4, rimraf@^2.5.1, rimraf@^2.5.2, rimraf@^2.
61356135
dependencies:
61366136
glob "^7.0.5"
61376137

6138+
rimraf@^2.6.2:
6139+
version "2.6.2"
6140+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
6141+
dependencies:
6142+
glob "^7.0.5"
6143+
61386144
ripemd160@^2.0.0, ripemd160@^2.0.1:
61396145
version "2.0.1"
61406146
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7"

packages/graphql-playground/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"start": "node scripts/start.js",
1818
"prepublishOnly": "yarn build",
1919
"copy-styles": "cat src/styles/*.css > playground.css",
20-
"build": "rm -rf lib && yarn build-app && yarn build-package && yarn copy-styles",
20+
"build": "rimraf lib && yarn build-app && yarn build-package && yarn copy-styles",
2121
"tsc": "tsc -p tsconfig.build.json",
22-
"build-package": "rm -rf lib && npm run tsc && babel lib -d lib && cp -r ./src/assets/ ./lib/assets/ && cd lib && rm -rf *.jsx;",
22+
"build-package": "rimraf lib && npm run tsc && babel lib -d lib && cp -r ./src/assets/ ./lib/assets/ && cd lib && rimraf *.jsx;",
2323
"build-app": "node scripts/build.js",
2424
"test": "node scripts/test.js --env=jsdom",
2525
"bump": "npm version patch --no-git-tag-version && git add package.json",
@@ -84,6 +84,7 @@
8484
"raw-loader": "^0.5.1",
8585
"react-dev-utils": "^4.2.1",
8686
"recursive-readdir": "^2.2.1",
87+
"rimraf": "^2.6.2",
8788
"source-map-loader": "^0.2.3",
8889
"strip-ansi": "3.0.1",
8990
"style-loader": "0.13.1",

packages/graphql-playground/yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6446,6 +6446,12 @@ rimraf@^2.2.8, rimraf@^2.4.4, rimraf@~2.5.1, rimraf@~2.5.4:
64466446
dependencies:
64476447
glob "^7.0.5"
64486448

6449+
rimraf@^2.6.2:
6450+
version "2.6.2"
6451+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
6452+
dependencies:
6453+
glob "^7.0.5"
6454+
64496455
ripemd160@^2.0.0, ripemd160@^2.0.1:
64506456
version "2.0.1"
64516457
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7"

0 commit comments

Comments
 (0)