Skip to content

Commit 1e08c1c

Browse files
committed
build: update project targets to facilitate dev builds
add tsc compile watcher to the client/server for development builds update tasks to use simpler build settings remove tsconfig strict compiler opts
1 parent c263c4a commit 1e08c1c

File tree

5 files changed

+30
-13
lines changed

5 files changed

+30
-13
lines changed

.vscode/tasks.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,16 @@
1010
{
1111
"type": "shell",
1212
"label": "watch",
13+
"command": "npx nx affected --verbose --target=watch --exclude=syntaxes",
1314
"isBackground": true,
14-
"command": "npx nx affected --target=build --exclude=syntaxes -- --watch",
1515
"group": {
1616
"kind": "build",
1717
"isDefault": true
1818
},
1919
"presentation": {
20-
"panel": "dedicated",
21-
"reveal": "never"
22-
},
23-
"problemMatcher": {
24-
"base": "$ts-webpack-watch",
25-
"background": {
26-
"activeOnStart": true
27-
}
20+
"panel": "dedicated"
2821
},
22+
"problemMatcher": ["$tsc-watch"],
2923
"dependsOn": "build_syntaxes"
3024
}
3125
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"CCCP",
2424
"Cortex Command Community Project"
2525
],
26-
"main": "dist/packages/client/extension.js",
26+
"main": "dist/packages/client/src/extension.js",
2727
"activationEvents": [],
2828
"contributes": {
2929
"configuration": {

packages/client/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
}
3434
}
3535
},
36+
"watch": {
37+
"executor": "@nrwl/js:tsc",
38+
"outputs": ["{options.outputPath}"],
39+
"options": {
40+
"outputPath": "dist/packages/client",
41+
"main": "packages/client/src/extension.ts",
42+
"tsConfig": "packages/client/tsconfig.app.json"
43+
}
44+
},
3645
"lint": {
3746
"executor": "@nrwl/linter:eslint",
3847
"outputs": ["{options.outputFile}"],

packages/server/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
}
3434
}
3535
},
36+
"watch": {
37+
"executor": "@nrwl/js:tsc",
38+
"outputs": ["{options.outputPath}"],
39+
"options": {
40+
"outputPath": "dist/packages/server",
41+
"main": "packages/server/src/sampleServer.ts",
42+
"tsConfig": "packages/server/tsconfig.app.json"
43+
}
44+
},
3645
"lint": {
3746
"executor": "@nrwl/linter:eslint",
3847
"outputs": ["{options.outputFile}"],

tsconfig.base.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"paths": {},
1414
"noImplicitAny": true,
1515
"noImplicitReturns": true,
16-
"noUnusedLocals": true,
17-
"noUnusedParameters": true,
1816
"strict": true,
1917
"module": "commonjs",
2018
"target": "es2020",
@@ -23,5 +21,12 @@
2321
"sourceMap": true
2422
},
2523
"exclude": ["node_modules", "tmp"],
26-
"references": [{ "path": "./client" }, { "path": "./server" }]
24+
"references": [
25+
{
26+
"path": "./client"
27+
},
28+
{
29+
"path": "./server"
30+
}
31+
]
2732
}

0 commit comments

Comments
 (0)