mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 17:35:52 +01:00
Switches from js to ts, and starts bundling files in order to produce a better package for deployment. Fixes the README.md to be a more appropriate front page, moving dev content to development.md. Makes the path to `carbon` configurable so that it's more stable than just running in `bazel-bin`. This is built using suggestions from samples at https://github.com/microsoft/vscode-extension-samples/tree/main/lsp-sample and https://github.com/microsoft/vscode-extension-samples/tree/main/esbuild-sample. Note the esbuild in particular comes from complaints from `vsce` to use an option from https://code.visualstudio.com/api/working-with-extensions/bundling-extension, and esbuild is just the first option detailed there (I have no real opinion on options). I'm bumping the version, and will do a release after merging. --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
56 lines
1.1 KiB
JSON
56 lines
1.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "watch",
|
|
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
|
|
"presentation": {
|
|
"reveal": "never"
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "watch:esbuild",
|
|
"group": "build",
|
|
"isBackground": true,
|
|
"label": "npm: watch:esbuild",
|
|
"presentation": {
|
|
"group": "watch",
|
|
"reveal": "never"
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "watch:tsc",
|
|
"group": "build",
|
|
"problemMatcher": "$tsc-watch",
|
|
"isBackground": true,
|
|
"label": "npm: watch:tsc",
|
|
"presentation": {
|
|
"group": "watch",
|
|
"reveal": "never"
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "watch-tests",
|
|
"problemMatcher": "$tsc-watch",
|
|
"isBackground": true,
|
|
"presentation": {
|
|
"reveal": "never",
|
|
"group": "watchers"
|
|
},
|
|
"group": "build"
|
|
},
|
|
{
|
|
"label": "tasks: watch-tests",
|
|
"dependsOn": ["npm: watch", "npm: watch-tests"],
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|