Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakeyallop/wasmsharp
Compile and execute C# code fully within the web browser using Web Assembly, including autocompletion and diagnostics.
https://github.com/jakeyallop/wasmsharp
blazor blazor-wasm codemirror codemirror6 csharp playwright pnpm pnpm-monorepo roslyn solidjs typescript vanilla-extract vite vitest wasm webassembly
Last synced: 22 days ago
JSON representation
Compile and execute C# code fully within the web browser using Web Assembly, including autocompletion and diagnostics.
- Host: GitHub
- URL: https://github.com/jakeyallop/wasmsharp
- Owner: JakeYallop
- Created: 2022-12-03T16:12:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T22:16:54.000Z (11 months ago)
- Last Synced: 2024-11-15T18:13:45.905Z (3 months ago)
- Topics: blazor, blazor-wasm, codemirror, codemirror6, csharp, playwright, pnpm, pnpm-monorepo, roslyn, solidjs, typescript, vanilla-extract, vite, vitest, wasm, webassembly
- Language: TypeScript
- Homepage: https://wasmsharp.pages.dev/
- Size: 1.6 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## See the demo
https://wasmsharp.pages.dev/
## Development setup
This project uses pnpm. Installation instructions for pnpm can be found [here](https://pnpm.io/installation).
### Prerequisites
* pnpm
* .NET 8.0 SDK or greater
* Ensure the `wasm-tools` workload is installed. It can be installed using
```
dotnet workload install wasm-tools
```### Install packages
```
pnpm i
```### Build all required depedencies to run the playground
```
pnpm init-playground-deps
```### Run the playground
```
pnpm start
```### Building @wasmsharp/core
```
pnpm build:core
```### Run tests
```
pnpm test
```## Deploying the Playground
### Build the playground
```
pnpm --filter playground build
```Build is created in the playground/dist/ folder.
### Serve the production build of the playground
```
pnpm serve
```Building and serving the playground has a shortcut command:
```
pnpm build-serve
```Building @wasmsharp/core, building the playground, and then previewing it has a shortcut command:
```
pnpm all
```