Skip to content

Commit b625994

Browse files
authored
chore: clean up root-level scripts (#21215)
1 parent 7fa946d commit b625994

16 files changed

+5
-314
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ system-tests/fixtures/large-img
103103
scripts/support
104104
binary-url.json
105105

106-
# Allows us to dynamically create eslint rules that override the default for Decaffeinate scripts
107-
.eslintrc.js
108106
cli/visual-snapshots
109107

110108
# Created by https://www.gitignore.io/api/osx,git,node,windows,intellij,linux

.vscode/launch.json

-14
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@
88
"processId": "${command:PickProcess}",
99
"continueOnAttach": true
1010
},
11-
{
12-
"type": "node",
13-
"request": "launch",
14-
"name": "test: active",
15-
"runtimeExecutable": "yarn",
16-
"runtimeArgs": [
17-
"test-debug-package"
18-
],
19-
"args": [
20-
"${file}"
21-
],
22-
"port": 5566,
23-
"console": "integratedTerminal"
24-
},
2511
{
2612
"type": "node",
2713
"request": "attach",

.vscode/tasks.json

-39
This file was deleted.

__snapshots__/mocha-snapshot-spec.js

-28
This file was deleted.

circle.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mainBuildFilters: &mainBuildFilters
2929
only:
3030
- develop
3131
- 10.0-release
32-
- unify-1449-beta-slug-length
32+
- remove-unused-scripts
3333

3434
# usually we don't build Mac app - it takes a long time
3535
# but sometimes we want to really confirm we are doing the right thing
@@ -38,7 +38,7 @@ macWorkflowFilters: &mac-workflow-filters
3838
when:
3939
or:
4040
- equal: [ develop, << pipeline.git.branch >> ]
41-
- equal: [ unify-1449-beta-slug-length, << pipeline.git.branch >> ]
41+
- equal: [ remove-unused-scripts, << pipeline.git.branch >> ]
4242
- matches:
4343
pattern: "-release$"
4444
value: << pipeline.git.branch >>
@@ -48,7 +48,7 @@ windowsWorkflowFilters: &windows-workflow-filters
4848
or:
4949
- equal: [ master, << pipeline.git.branch >> ]
5050
- equal: [ develop, << pipeline.git.branch >> ]
51-
- equal: [ unify-1449-beta-slug-length, << pipeline.git.branch >> ]
51+
- equal: [ remove-unused-scripts, << pipeline.git.branch >> ]
5252
- matches:
5353
pattern: "-release$"
5454
value: << pipeline.git.branch >>
@@ -217,7 +217,7 @@ commands:
217217
- v{{ .Environment.CACHE_VERSION }}-{{ checksum "platform_key" }}-state-of-system-tests-projects-node-modules-cache-{{ checksum "system_tests_cache_key" }}
218218
- run:
219219
name: Send root honeycomb event for this CI build
220-
command: cd system-tests/scripts && node ./send-root-honecomb-event.js
220+
command: cd system-tests/scripts && node ./send-root-honeycomb-event.js
221221
- run:
222222
name: Bail if specific cache exists
223223
command: |
@@ -1081,24 +1081,18 @@ jobs:
10811081
parallelism: 1
10821082
steps:
10831083
- restore_cached_workspace
1084-
# make sure mocha runs
1085-
- run: yarn test-mocha
10861084
- when:
10871085
condition:
10881086
# several snapshots fails for windows due to paths.
10891087
# until these are fixed, run the tests that are working.
10901088
equal: [ *windows-executor, << parameters.executor >> ]
10911089
steps:
10921090
- run: yarn test-scripts scripts/**/*spec.js
1093-
# make sure our snapshots are compared correctly
1094-
- run: yarn test-mocha-snapshot
10951091
- unless:
10961092
condition:
10971093
equal: [ *windows-executor, << parameters.executor >> ]
10981094
steps:
10991095
- run: yarn test-scripts
1100-
# make sure our snapshots are compared correctly
1101-
- run: yarn test-mocha-snapshot
11021096
# make sure packages with TypeScript can be transpiled to JS
11031097
- run: yarn lerna run build-prod --stream
11041098
# run unit tests from each individual package
@@ -1657,7 +1651,7 @@ jobs:
16571651
- run:
16581652
name: Check current branch to persist artifacts
16591653
command: |
1660-
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "unify-1449-beta-slug-length" ]]; then
1654+
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "remove-unused-scripts" ]]; then
16611655
echo "Not uploading artifacts or posting install comment for this branch."
16621656
circleci-agent step halt
16631657
fi

package.json

-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@
4848
"pretest": "yarn ensure-deps",
4949
"test": "yarn lerna exec yarn test --scope cypress --scope \"'@packages/{config,errors,electron,extension,https-proxy,launcher,net-stubbing,network,proxy,rewriter,runner,runner-shared,socket}'\"",
5050
"test-debug": "lerna exec yarn test-debug --ignore \"'@packages/{desktop-gui,driver,root,static,web-config}'\"",
51-
"pretest-e2e": "yarn ensure-deps",
5251
"test-integration": "lerna exec yarn test-integration --ignore \"'@packages/{desktop-gui,driver,root,static,web-config}'\"",
53-
"test-mocha": "mocha --reporter spec scripts/spec.js",
54-
"test-mocha-snapshot": "mocha scripts/mocha-snapshot-spec.js",
5552
"test-npm-package-release-script": "npx lerna exec --scope \"@cypress/*\" -- npx --no-install semantic-release --dry-run",
56-
"test-s3-api": "node -r ./packages/ts/register scripts/binary/s3-api-demo.ts",
5753
"test-system": "yarn workspace @tooling/system-tests test",
5854
"test-scripts": "mocha -r packages/ts/register --reporter spec 'scripts/unit/**/*spec.js'",
5955
"test-scripts-watch": "yarn test-scripts --watch --watch-extensions 'ts,js'",
@@ -125,9 +121,7 @@
125121
"eslint-plugin-react": "7.22.0",
126122
"eslint-plugin-react-hooks": "4.2.0",
127123
"execa": "4.0.0",
128-
"execa-wrap": "1.4.0",
129124
"filesize": "4.1.2",
130-
"find-package-json": "1.2.0",
131125
"fs-extra": "9.1.0",
132126
"gift": "0.10.2",
133127
"glob": "7.1.6",

scripts/add_newlines_to_snapshots.js

-26
This file was deleted.

scripts/binary/s3-api-demo.ts

-21
This file was deleted.

scripts/mocha-snapshot-spec.js

-22
This file was deleted.

scripts/rename-workspace-packages.js

-24
This file was deleted.

scripts/spec.js

-4
This file was deleted.

scripts/test-debug-package.js

-30
This file was deleted.

scripts/test-unique-npm-and-binary.js

-50
This file was deleted.

0 commit comments

Comments
 (0)