Skip to content

Commit 7fef5f9

Browse files
authored
chore: cleanup stale scripts and packages (#3239)
* remove old test scripts * remove lsp-client * remove lsp server * remove dendron next server * update * bump ci key
1 parent 4a487c4 commit 7fef5f9

File tree

111 files changed

+66
-28698
lines changed

Some content is hidden

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

111 files changed

+66
-28698
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
with:
8080
path: |
8181
packages/*/lib/*
82-
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-17
82+
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-18
8383
restore-keys: |
8484
${{ runner.os }}-yarn-9
8585

bootstrap/.vscode/tasks.json

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"@dendronhq/engine-server",
1717
"@dendronhq/dendron-cli",
1818
"@dendronhq/pods-core",
19-
"@dendronhq/lsp-server",
2019
"@dendronhq/plugin-core"
2120
]
2221
}

bootstrap/scripts/src/genPkgJson.ts

-14
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ type PkgJson = {
2121
};
2222
};
2323

24-
const getPackages = (opts?: { blacklist: string[] }) => {
25-
let blacklist = [
26-
".DS_Store",
27-
"lsp-client",
28-
"lsp-server",
29-
"generator-dendron",
30-
];
31-
const packages = fs.readdirSync("packages");
32-
if (opts?.blacklist) {
33-
blacklist = blacklist.concat(opts.blacklist);
34-
}
35-
return packages.filter((ent) => !blacklist.includes(ent));
36-
};
37-
3824
const getPackagesBackend = (opts?: { blacklist: string[] }) => {
3925
let blacklist = [".DS_Store"];
4026
const packages = fs.readdirSync(

bootstrap/scripts/src/genTasks.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const enum PACKAGE {
1212
"engine-server" = "engine-server",
1313
"engine-test-utils" = "engine-test-utils",
1414
"generator-dendron" = "generator-dendron",
15-
// 'LSP_CLIENT_UBER'='lsp-client-uber',
16-
// 'LSP_SERVER'='lsp-server',
1715
"plugin-core" = "plugin-core",
1816
"pods-core" = "pods-core",
1917
}
@@ -147,13 +145,7 @@ const overrides = {
147145
};
148146

149147
async function main() {
150-
const blacklist = [
151-
".DS_Store",
152-
"plugin-core",
153-
"lsp-client",
154-
"lsp-server",
155-
PACKAGE["generator-dendron"],
156-
];
148+
const blacklist = [".DS_Store", "plugin-core", PACKAGE["generator-dendron"]];
157149
const packages = fs.readdirSync("packages");
158150
packages
159151
.filter((ent) => !blacklist.includes(ent))

dendron-lsp.code-workspace

-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"folders": [
3-
{
4-
"path": "packages/lsp-server"
5-
},
63
{
74
"path": "packages/engine-server"
85
},
@@ -15,15 +12,9 @@
1512
{
1613
"path": "packages/api-server"
1714
},
18-
{
19-
"path": "packages/lsp-client"
20-
},
2115
{
2216
"path": "packages/common-test-utils"
2317
},
24-
// {
25-
// "path": "vendor/vscode-languageserver-node"
26-
// },
2718
],
2819
"settings": {
2920
"files.exclude": {

dendron-next-server.code-workspace

-20
This file was deleted.

packages/api-server/.vscode/tasks.json

-37
This file was deleted.

packages/api-server/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@
2828
"build": "yarn compile",
2929
"buildCI": "yarn compile",
3030
"compile": "tsc -p tsconfig.build.json ",
31-
"test": "echo stub",
3231
"coverage": "echo no-op",
3332
"watch": "yarn compile --watch",
34-
"test:unit": "echo no-op",
35-
"test:unit:debug": "echo no-op",
36-
"test:watch": "echo no-op",
3733
"start:local:old": "cross-env PORT=3005 LOG_LEVEL=info npx ts-node ./src/start.ts",
3834
"start:local": "cross-env PORT=3005 LOG_LEVEL=info nodemon --watch 'src/**/*.ts' lib/start.js",
3935
"local:dev:custom": "env AWS_PROFILE=dendron-dev LOCAL=true PORT=3005 LOG_LEVEL=info nodemon --watch 'server/**/*.ts' dist/server/index.js | pino-pretty | tee /tmp/out.txt",

packages/common-all/.vscode/tasks.json

-26
This file was deleted.

packages/common-all/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@
3030
"build": "yarn compile",
3131
"buildCI": "yarn compile",
3232
"compile": "tsc -p tsconfig.build.json ",
33-
"test": "echo 0",
34-
"watch": "yarn compile --watch",
35-
"test:unit": "echo 0",
36-
"test:unit:debug": "echo 0",
37-
"test:watch": "echo 0"
33+
"watch": "yarn compile --watch"
3834
},
3935
"dependencies": {
4036
"axios": "^0.21.4",

packages/common-frontend/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@
3030
"build": "yarn compile",
3131
"buildCI": "yarn compile",
3232
"compile": "tsc -p tsconfig.build.json ",
33-
"test": "echo 0",
34-
"watch": "yarn compile --watch",
35-
"test:unit": "echo 0",
36-
"test:unit:debug": "echo 0",
37-
"test:watch": "echo 0"
33+
"watch": "yarn compile --watch"
3834
},
3935
"dependencies": {
4036
"@aws-amplify/core": "^4.0.2",

packages/common-server/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@
3131
"build": "yarn compile",
3232
"buildCI": "yarn compile",
3333
"compile": "tsc -p tsconfig.build.json ",
34-
"test": "echo nop",
3534
"coverage": "echo nop",
36-
"watch": "yarn compile --watch",
37-
"test:watch": "echo nop"
35+
"watch": "yarn compile --watch"
3836
},
3937
"dependencies": {
4038
"@dendronhq/common-all": "^0.103.0",

packages/common-test-utils/.vscode/tasks.json

-26
This file was deleted.

packages/common-test-utils/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@
2929
"build": "yarn compile",
3030
"buildCI": "yarn compile",
3131
"compile": "tsc -p tsconfig.json ",
32-
"test": "echo 0",
3332
"coverage": "echo 0 ",
34-
"watch": "yarn compile --watch",
35-
"test:unit": "echo 0",
36-
"test:unit:debug": "echo 0 ",
37-
"test:watch": "echo 0"
33+
"watch": "yarn compile --watch"
3834
},
3935
"devDependencies": {
4036
"@types/fs-extra": "^9.0.1",

packages/dendron-cli/.vscode/tasks.json

+1-22
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4-
{
5-
"label": "test:watch",
6-
"command": "yarn test:watch ${relativeFile} -u",
7-
"type": "shell",
8-
"problemMatcher": [],
9-
"options": {
10-
"env": {
11-
"LOG_DST": "../../logs/dendron-cli.log"
12-
}
13-
}
14-
},
15-
{
16-
"type": "npm",
17-
"label": "test:all",
18-
"script": "test",
19-
"group": {
20-
"kind": "test",
21-
"isDefault": true
22-
},
23-
"problemMatcher": []
24-
},
254
{
265
"label": "chmod +x",
276
"command": "chmod +x lib/bin/dendron-cli.js",
@@ -107,4 +86,4 @@
10786
"problemMatcher": []
10887
}
10988
]
110-
}
89+
}

packages/dendron-next-server/.env.development

-1
This file was deleted.

packages/dendron-next-server/.gitignore

-53
This file was deleted.

0 commit comments

Comments
 (0)