-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into miroman/checksum
- Loading branch information
Showing
20 changed files
with
202 additions
and
1,650 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 @@ | ||
{ | ||
"dependencies": { | ||
"tree-sitter-cli": "^0.20.8" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 +1,34 @@ | ||
#requires -version 7.4 | ||
|
||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
# check if tools are installed | ||
|
||
$PSNativeCommandUseErrorActionPreference = $true | ||
$ErrorActionPreference = 'Stop' | ||
function Invoke-NativeCommand($cmd) { | ||
Invoke-Expression $cmd | ||
if ($LASTEXITCODE -ne 0) { | ||
throw "Command $cmd failed with exit code $LASTEXITCODE" | ||
} | ||
} | ||
|
||
if ($null -eq (Get-Command npm -ErrorAction Ignore)) { | ||
Write-Host 'Installing Node' | ||
|
||
if ($IsWindows) { | ||
winget install OpenJS.NodeJS.LTS | ||
} | ||
elseif ($IsMacOS) { | ||
brew install node | ||
} | ||
else { | ||
sudo apt-get install nodejs | ||
sudo apt-get install npm | ||
} | ||
} | ||
|
||
npm list tree-sitter-cli | ||
if ($LASTEXITCODE -ne 0) { | ||
npm install tree-sitter-cli | ||
} | ||
|
||
npx tree-sitter generate | ||
node-gyp configure | ||
node-gyp build | ||
npx tree-sitter test | ||
Invoke-NativeCommand 'npx tree-sitter generate' | ||
Invoke-NativeCommand 'npx tree-sitter test' |
Oops, something went wrong.