-
Notifications
You must be signed in to change notification settings - Fork 47.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic workspace setup for Forgive.
- Loading branch information
Showing
8 changed files
with
671 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"private": "true", | ||
"name": "react-forgive-client", | ||
"version": "0.0.0", | ||
"description": "Experimental LSP client", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "echo 'no build'", | ||
"test": "echo 'no tests'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/facebook/react.git", | ||
"directory": "compiler/packages/react-forgive-client" | ||
}, | ||
"dependencies": { | ||
"vscode-languageclient": "^9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/vscode": "^1.95.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
"@types/vscode@^1.95.0": | ||
version "1.96.0" | ||
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.96.0.tgz#3181004bf25d71677ae4aacdd7605a3fd7edf08e" | ||
integrity sha512-qvZbSZo+K4ZYmmDuaodMbAa67Pl6VDQzLKFka6rq+3WUTY4Kro7Bwoi0CuZLO/wema0ygcmpwow7zZfPJTs5jg== | ||
|
||
balanced-match@^1.0.0: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" | ||
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== | ||
|
||
brace-expansion@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" | ||
integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== | ||
dependencies: | ||
balanced-match "^1.0.0" | ||
|
||
minimatch@^5.1.0: | ||
version "5.1.6" | ||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" | ||
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== | ||
dependencies: | ||
brace-expansion "^2.0.1" | ||
|
||
semver@^7.3.7: | ||
version "7.6.3" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" | ||
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== | ||
|
||
vscode-jsonrpc@8.2.0: | ||
version "8.2.0" | ||
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz#f43dfa35fb51e763d17cd94dcca0c9458f35abf9" | ||
integrity sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA== | ||
|
||
vscode-languageclient@^9.0.1: | ||
version "9.0.1" | ||
resolved "https://registry.yarnpkg.com/vscode-languageclient/-/vscode-languageclient-9.0.1.tgz#cdfe20267726c8d4db839dc1e9d1816e1296e854" | ||
integrity sha512-JZiimVdvimEuHh5olxhxkht09m3JzUGwggb5eRUkzzJhZ2KjCN0nh55VfiED9oez9DyF8/fz1g1iBV3h+0Z2EA== | ||
dependencies: | ||
minimatch "^5.1.0" | ||
semver "^7.3.7" | ||
vscode-languageserver-protocol "3.17.5" | ||
|
||
vscode-languageserver-protocol@3.17.5: | ||
version "3.17.5" | ||
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz#864a8b8f390835572f4e13bd9f8313d0e3ac4bea" | ||
integrity sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg== | ||
dependencies: | ||
vscode-jsonrpc "8.2.0" | ||
vscode-languageserver-types "3.17.5" | ||
|
||
vscode-languageserver-types@3.17.5: | ||
version "3.17.5" | ||
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz#3273676f0cf2eab40b3f44d085acbb7f08a39d8a" | ||
integrity sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"name": "react-forgive", | ||
"displayName": "React Analyzer", | ||
"description": "React LSP", | ||
"license": "MIT", | ||
"version": "0.0.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/facebook/react.git", | ||
"directory": "compiler/packages/react-forgive" | ||
}, | ||
"categories": [ | ||
"Programming Languages" | ||
], | ||
"keywords": [ | ||
"react", | ||
"react analyzer", | ||
"react compiler" | ||
], | ||
"publisher": "Meta", | ||
"engines": { | ||
"vscode": "^1.75.0" | ||
}, | ||
"activationEvents": [ | ||
"onLanguage:javascriptreact", | ||
"onLanguage:typescriptreact" | ||
], | ||
"main": "./dist/extension.js", | ||
"contributes": { | ||
"commands": [ | ||
{ | ||
"command": "react-forgive.toggleAll", | ||
"title": "React Analyzer: Toggle on/off" | ||
} | ||
] | ||
}, | ||
"scripts": { | ||
"compile": "yarn run esbuild-base -- --sourcemap", | ||
"dev": "yarn run package && yarn run install-ext", | ||
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node", | ||
"install-ext": "code --install-extension vscode-react-compiler-0.0.1.vsix", | ||
"lint": "eslint src --ext ts", | ||
"package": "vsce package", | ||
"postinstall": "cd client && yarn install && cd ../server && yarn install && cd ..", | ||
"pretest": "yarn run compile && yarn run lint", | ||
"test": "vscode-test", | ||
"test-compile": "tsc -p ./", | ||
"vscode:prepublish": "yarn run esbuild-base -- --minify", | ||
"watch": "yarn run esbuild-base -- --sourcemap --watch" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.13.0", | ||
"@types/node": "^20", | ||
"esbuild": "^0.24.0", | ||
"eslint": "^9.13.0", | ||
"typescript": "^5.7.2", | ||
"typescript-eslint": "^8.16.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"private": "true", | ||
"name": "react-forgive-server", | ||
"version": "0.0.0", | ||
"description": "Experimental LSP server", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "echo 'no build'", | ||
"test": "echo 'no tests'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/facebook/react.git", | ||
"directory": "compiler/packages/react-forgive-server" | ||
}, | ||
"dependencies": { | ||
"vscode-languageserver": "^9.0.1", | ||
"vscode-languageserver-textdocument": "^1.0.12" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "@tsconfig/strictest/tsconfig.json", | ||
"compilerOptions": { | ||
"module": "CommonJS", | ||
"moduleResolution": "node", | ||
"outDir": "dist", | ||
"jsx": "react-jsxdev", | ||
"lib": ["ES2020"], | ||
"target": "ES2020", | ||
}, | ||
"exclude": ["node_modules", ".vscode-test"], | ||
"include": ["src/**/*.ts"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
vscode-jsonrpc@8.2.0: | ||
version "8.2.0" | ||
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz#f43dfa35fb51e763d17cd94dcca0c9458f35abf9" | ||
integrity sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA== | ||
|
||
vscode-languageserver-protocol@3.17.5: | ||
version "3.17.5" | ||
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz#864a8b8f390835572f4e13bd9f8313d0e3ac4bea" | ||
integrity sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg== | ||
dependencies: | ||
vscode-jsonrpc "8.2.0" | ||
vscode-languageserver-types "3.17.5" | ||
|
||
vscode-languageserver-textdocument@^1.0.12: | ||
version "1.0.12" | ||
resolved "https://registry.yarnpkg.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz#457ee04271ab38998a093c68c2342f53f6e4a631" | ||
integrity sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA== | ||
|
||
vscode-languageserver-types@3.17.5: | ||
version "3.17.5" | ||
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz#3273676f0cf2eab40b3f44d085acbb7f08a39d8a" | ||
integrity sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg== | ||
|
||
vscode-languageserver@^9.0.1: | ||
version "9.0.1" | ||
resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz#500aef82097eb94df90d008678b0b6b5f474015b" | ||
integrity sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g== | ||
dependencies: | ||
vscode-languageserver-protocol "3.17.5" |
Oops, something went wrong.