Skip to content

Commit

Permalink
Convert playground to use vite instead of webpack (#16341)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin authored Feb 8, 2025
1 parent e03c7bb commit 8f4e885
Show file tree
Hide file tree
Showing 28 changed files with 2,255 additions and 4,278 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Check npm version
run: npm -v
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: npm ci
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.Wasm/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static async Task Main(string[] args)

var jsRuntime = serviceProvider.GetRequiredService<IJSRuntime>();
var interop = new Interop(jsRuntime, serviceProvider);
await jsRuntime.InvokeAsync<object>("BicepInitialize", DotNetObjectReference.Create(interop));
await jsRuntime.InvokeAsync<object>("InteropInitialize", DotNetObjectReference.Create(interop));

await builder.Build().RunAsync();
}
Expand Down
1 change: 1 addition & 0 deletions src/playground/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import tseslint from "typescript-eslint";
import pluginJest from 'eslint-plugin-jest';
import notice from "eslint-plugin-notice";
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default tseslint.config({
files: ["src/**/*.ts", "test/**/*.ts", "test-live/**/*.ts"],
extends: [
Expand Down
12 changes: 12 additions & 0 deletions src/playground/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Bicep Playground</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 8f4e885

Please sign in to comment.