Skip to content

Commit 1b18e38

Browse files
Restructure directories in preparation for move to pnpm workspace (#1275)
This PR does a massive restructure of our directories in preparation for splitting up into separate packages for #945. Here is the new layout: <img width="286" alt="image" src="https://user-images.githubusercontent.com/755842/220430713-56d211fe-043a-46ae-b802-449cd0693cd5.png"> ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e6584ed commit 1b18e38

File tree

2,883 files changed

+1742
-1015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,883 files changed

+1742
-1015
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ insert_final_newline = false
2222
# with a line that has trailing white space. Many of our recorded
2323
# tests use strings with trailing white space to represent the final
2424
# document contents. For example
25-
# src/test/suite/fixtures/recorded/languages/ruby/changeCondition.yml
25+
# packages/cursorless-vscode-e2e/suite/fixtures/recorded/languages/ruby/changeCondition.yml
2626
trim_trailing_whitespace = false
2727

2828
[Makefile]
2929
indent_style = tab
3030

31-
[src/vendor/**]
31+
[**/vendor/**]
3232
charset = unset
3333
end_of_line = unset
3434
indent_size = unset

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
minimum_pre_commit_version: "2.9.0"
2-
exclude: ^src/vendor/
2+
exclude: /vendor/
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
55
rev: v4.4.0
@@ -21,8 +21,8 @@ repos:
2121
# with a line that has trailing white space. Many of our recorded
2222
# tests use strings with trailing white space to represent the final
2323
# document contents. For example
24-
# src/test/suite/fixtures/recorded/languages/ruby/changeCondition.yml
25-
exclude: ^src/test/suite/fixtures/recorded/.*/[^/]*\.yml$
24+
# packages/cursorless-vscode-e2e/suite/fixtures/recorded/languages/ruby/changeCondition.yml
25+
exclude: ^packages/cursorless-vscode-e2e/suite/fixtures/recorded/.*/[^/]*\.yml$
2626
- repo: https://github.com/pre-commit/mirrors-prettier
2727
rev: "v2.7.1"
2828
hooks:

.prettierignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/src/vendor
1+
**/vendor
22

33
# We use our own format for our recorded yaml tests to keep them compact
4-
/src/test/suite/fixtures/recorded/**/*.yml
5-
4+
/packages/cursorless-vscode-e2e/suite/fixtures/recorded/**/*.yml
65

76
# This was swizzled from a Docusaurus core class
87
docs-site/src/theme/SearchBar/index.js

.vscode/launch.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"args": [
3131
"--profile=cursorlessDevelopment",
3232
"--extensionDevelopmentPath=${workspaceFolder}",
33-
"--extensionTestsPath=${workspaceFolder}/out/test/runners/all"
33+
"--extensionTestsPath=${workspaceFolder}/out/test-harness/runners/all"
3434
],
3535
"outFiles": ["${workspaceFolder}/out/**/*.js"],
3636
"preLaunchTask": "${defaultBuildTask}",
@@ -43,7 +43,7 @@
4343
"type": "node",
4444
"request": "launch",
4545
"name": "Unit tests only",
46-
"program": "${workspaceFolder}/out/test/scripts/runUnitTestsOnly",
46+
"program": "${workspaceFolder}/out/test-harness/scripts/runUnitTestsOnly",
4747
"env": {
4848
"CURSORLESS_TEST": "true"
4949
},
@@ -65,7 +65,7 @@
6565
"args": [
6666
"--profile=cursorlessDevelopment",
6767
"--extensionDevelopmentPath=${workspaceFolder}",
68-
"--extensionTestsPath=${workspaceFolder}/out/test/runners/all"
68+
"--extensionTestsPath=${workspaceFolder}/out/test-harness/runners/all"
6969
],
7070
"outFiles": ["${workspaceFolder}/out/**/*.js"],
7171
"preLaunchTask": "${defaultBuildTask}",
@@ -85,7 +85,7 @@
8585
"args": [
8686
"--profile=cursorlessDevelopment",
8787
"--extensionDevelopmentPath=${workspaceFolder}",
88-
"--extensionTestsPath=${workspaceFolder}/out/test/runners/all"
88+
"--extensionTestsPath=${workspaceFolder}/out/test-harness/runners/all"
8989
],
9090
"outFiles": ["${workspaceFolder}/out/**/*.js"],
9191
"preLaunchTask": "${defaultBuildTask}",
@@ -106,7 +106,7 @@
106106
"args": [
107107
"--profile=cursorlessDevelopment",
108108
"--extensionDevelopmentPath=${workspaceFolder}",
109-
"--extensionTestsPath=${workspaceFolder}/out/test/runners/all"
109+
"--extensionTestsPath=${workspaceFolder}/out/test-harness/runners/all"
110110
],
111111
"outFiles": ["${workspaceFolder}/out/**/*.js"],
112112
"preLaunchTask": "${defaultBuildTask}",

docs-site/typedoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
tsconfig: "../tsconfig.json",
3-
entryPoints: ["../src/"],
3+
entryPoints: ["../packages/"],
44
entryPointStrategy: "expand",
55

66
readme: "../docs/contributing/_api-index.md",

docs/contributing/CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions

docs/contributing/_api-index.md

Lines changed: 1 addition & 1 deletion

docs/contributing/adding-a-new-language.md

Lines changed: 5 additions & 5 deletions

docs/contributing/test-case-recorder.md

Lines changed: 8 additions & 8 deletions

docs/user/README.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)