Skip to content

Commit

Permalink
feat: add Angular example (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 16, 2022
1 parent 198bc84 commit 70d0d19
Show file tree
Hide file tree
Showing 48 changed files with 1,674 additions and 171 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Expand Up @@ -36,6 +36,23 @@
"script": "watch"
}
},
{
"name": "Launch Angular Example",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceRoot}/examples/vscode-angular"
],
"outFiles": [
"${workspaceRoot}/*/*/out/**/*.js"
],
"preLaunchTask": {
"type": "npm",
"script": "watch"
}
},
{
"type": "extensionHost",
"request": "launch",
Expand Down
21 changes: 21 additions & 0 deletions examples/angular-language-core/LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021-present Johnson Chu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
24 changes: 24 additions & 0 deletions examples/angular-language-core/package.json
@@ -0,0 +1,24 @@
{
"name": "@volar-examples/angular-language-core",
"version": "1.0.13",
"main": "out/index.js",
"license": "MIT",
"files": [
"out/**/*.js",
"out/**/*.d.ts"
],
"repository": {
"type": "git",
"url": "https://github.com/johnsoncodehk/volar.git",
"directory": "examples/angular-language-core"
},
"dependencies": {
"@angular-eslint/bundled-angular-compiler": "^15.1.0",
"@volar/language-core": "1.0.13",
"vscode-languageserver-textdocument": "^1.0.7",
"vscode-uri": "^3.0.6"
},
"devDependencies": {
"@angular/compiler": "^15.0.4"
}
}
3 changes: 3 additions & 0 deletions examples/angular-language-core/src/index.ts
@@ -0,0 +1,3 @@
export * from '@volar/language-core';
export * from './modules/ts';
export * from './modules/html';

0 comments on commit 70d0d19

Please sign in to comment.