Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fc1943s committed Jan 27, 2025
1 parent beb4ddb commit ad8b1b0
Show file tree
Hide file tree
Showing 9 changed files with 305 additions and 53 deletions.
2 changes: 1 addition & 1 deletion apps/spiral/temp/extension/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (!$fast) {
{ wasm-pack build --target web --dev <# --reference-types # --weak-refs --no-typescript #> } | Invoke-Block

Remove-Item ./dist -Recurse -Force -ErrorAction Ignore
{ ~/.bun/bin/bunx --bun esbuild --bundle --minify --loader:.wasm=file --outdir=dist content_script.ts service_worker.ts devtools.ts } | Invoke-Block
{ ~/.bun/bin/bunx --bun esbuild --bundle --minify --loader:.wasm=file --outdir=dist content_script.ts service_worker.ts devtools.ts } | Invoke-Block -OnError Continue
{ Copy-Item ./public/* ./dist -Recurse -Force } | Invoke-Block

if (!$fast) {
Expand Down
6 changes: 3 additions & 3 deletions scripts/dep_dotnet-interactive_extension.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (!$fast) {
Remove-Item $vsixPath -Force -ErrorAction Ignore

Write-Output "Compiling..."
{ npm run compile } | Invoke-Block -Location $extensionSrcPath
{ ~/.bun/bin/bun --bun compile } | Invoke-Block -Location $extensionSrcPath

$path = Join-Path $extensionSrcPath "out/deps/dotnet-interactive/src/polyglot-notebooks-vscode-insiders/src/vscode-common/documentSemanticTokenProvider.js"
Write-Output "path: $path"
Expand Down Expand Up @@ -90,11 +90,11 @@ $path = Join-Path $extensionSrcPath "out/deps/spiral/deps/polyglot/deps/Fable/sr
$dir = Join-Path $extensionSrcPath "out/deps/spiral/deps/polyglot/deps/Fable/src/fable-library-ts/lib"
New-Item $dir -ItemType Directory -Force | Out-Null
Copy-Item "$ScriptDir/../deps/Fable/src/fable-library-ts/lib/ts/big.js" $(Join-Path $dir "big.js") -Force
# { ~/.bun/bin/bun build big.ts --minify --target=node --outfile=big.js } | Invoke-Block -Location $dir
# { ~/.bun/bin/bun --bun build big.ts --minify --target=node --outfile=big.js } | Invoke-Block -Location $dir
# Remove-Item $(Join-Path $dir "big.ts") -Force -ErrorAction Ignore

Write-Output "Packaging..."
{ npx @vscode/vsce package } | Invoke-Block -Location $extensionSrcPath
{ ~/.bun/bin/bun --bun package } | Invoke-Block -Location $extensionSrcPath


$extensionsPath = @()
Expand Down
3 changes: 3 additions & 0 deletions scripts/dep_fable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ $dotnetVersion = $dllPath | Split-Path -Parent | Split-Path -Leaf

Copy-Item "$releasePath/$dotnetVersion/**" $libVersionPath -Recurse -Force

{ pwsh ../lib/typescript/fable/build.ps1 } | Invoke-Block
{ pwsh ../lib/python/fable/build.ps1 } | Invoke-Block

if ($env:CI) {
Remove-Item "../deps/Fable" -Recurse -Force -ErrorAction Ignore
}
2 changes: 1 addition & 1 deletion scripts/dep_spiral_extension.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if ($extensionsPath.Count -gt 0) {
{ ~/.bun/bin/bunx --bun tsc --build } | Invoke-Block -Location $extensionSrcPath
}

{ ~/.bun/bin/bun esbuild-base -- --minify } | Invoke-Block -Location $extensionSrcPath
{ ~/.bun/bin/bun --bun esbuild-base -- --minify } | Invoke-Block -Location $extensionSrcPath
{ ~/.bun/bin/bunx --bun @vscode/vsce package } | Invoke-Block -Location $extensionSrcPath
}

Expand Down
168 changes: 147 additions & 21 deletions scripts/init.dib.html

Large diffs are not rendered by default.

170 changes: 148 additions & 22 deletions scripts/init.dib.ipynb

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions scripts/init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,3 @@ Invoke-Dib init.dib

$Path = ResolveLink "../deps/spiral/apps/spiral/build.ps1"
{ pwsh $Path -SkipPreBuild 1 } | Invoke-Block

{ pwsh ../lib/typescript/fable/build.ps1 } | Invoke-Block
{ pwsh ../lib/python/fable/build.ps1 } | Invoke-Block
2 changes: 1 addition & 1 deletion scripts/publish-bin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $files | ForEach-Object {
# }
# $Error.Clear()

# $output = ~/.bun/bin/bun start $_.FullName --cwd ../apps/ipfs
# $output = ~/.bun/bin/bun --bun start $_.FullName --cwd ../apps/ipfs
# $status = $output `
# | Select-String -Pattern "status: '(\w+)'" `
# | ForEach-Object { $_.Matches.Groups[1].Value }
Expand Down
2 changes: 1 addition & 1 deletion scripts/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function UpdateJson {
)
$json = [IO.Path]::GetFullPath("$ScriptDir/$json")
Write-Output "`n$json"
{ ~/.bun/bin/bun update --cwd $json } | Invoke-Block
{ ~/.bun/bin/bun --bun update --cwd $json } | Invoke-Block
}


Expand Down

0 comments on commit ad8b1b0

Please sign in to comment.