forked from ApsarasX/llvm-bindings
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some settings required to work in this project
- Loading branch information
1 parent
792ac2e
commit f787a82
Showing
8 changed files
with
131 additions
and
11 deletions.
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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
.npmrc | ||
|
||
.idea/ | ||
.vscode/ | ||
.vscode/* | ||
!.vscode/launch.json | ||
!.vscode/settings.json | ||
|
||
cmake-build-*/ | ||
|
||
|
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 @@ | ||
cmake_LLVM_DIR=/opt/homebrew/opt/llvm@14/lib/cmake/llvm/ |
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,56 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Jest: Run tests in current file", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeExecutable": "npx", | ||
"program": "jest", | ||
"args": [ | ||
"${relativeFile}", | ||
], | ||
"console": "integratedTerminal", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js" | ||
] | ||
}, | ||
{ | ||
"name": "Vitest: Run tests in current file", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeExecutable": "npx", | ||
"program": "vitest", | ||
"args": [ | ||
"run", | ||
"${relativeFile}", | ||
], | ||
"console": "integratedTerminal", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js" | ||
] | ||
}, | ||
{ | ||
/* execute npm build:debug before running this! */ | ||
"name": "LLDB: Debug LLVM-binding native parts during Vitest execution", | ||
"type": "lldb", | ||
"request": "launch", | ||
"program": "node", | ||
"sourceLanguages": ["cpp", "javascript"], | ||
"args": [ | ||
"${workspaceFolder}/node_modules/vitest/dist/cli-wrapper.js", | ||
"run", | ||
"${relativeFile}", | ||
], | ||
}, | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"C_Cpp.default.cStandard": "c17", | ||
"C_Cpp.default.cppStandard": "c++17", | ||
"C_Cpp.default.includePath": [ | ||
"/opt/homebrew/opt/llvm@14/include", | ||
"${userHome}/.cmake-js/node-*/v*/include/node", | ||
"${workspaceFolder}/node_modules/node-addon-api", | ||
"${workspaceFolder}/include", | ||
], | ||
"clangd.fallbackFlags": [ | ||
"-std=c++17", | ||
"-xc++-header", | ||
"-I/opt/homebrew/opt/llvm@14/include", | ||
"-I${userHome}/.cmake-js/node-arm64/v18.18.2/include/node/", /* switch to your arch & version here! */ | ||
"-I${workspaceFolder}/node_modules/node-addon-api", | ||
"-I${workspaceFolder}/include", | ||
] | ||
} |
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
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
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 @@ | ||
//import { defineConfig } from "vitest/config" | ||
|
||
export default /*defineConfig*/({ | ||
test: { | ||
deps: { | ||
interopDefault: true | ||
}, | ||
include: ['**/*.{test,spec}.ts'], | ||
exclude: ['**/node_modules/**', '**/dist/**'], | ||
globals: true, | ||
typecheck: { | ||
//enabled: false | ||
}, | ||
poolOptions: { | ||
threads: { | ||
singleThread: true | ||
} | ||
} | ||
} | ||
}); |