Skip to content

Commit

Permalink
Merge wasm directory into root
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTaylor7 committed May 3, 2024
1 parent e862f99 commit bb8fc1c
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
/target/
/vendor/
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module">
import init, { render, on_key_down, on_key_up } from "/wasm/pkg/look_how_they_truncated_my_boy.js";
import init, { render, on_key_down, on_key_up } from "/pkg/look_how_they_truncated_my_boy.js";
await init();
function loop(ms) {
render(ms);
Expand Down
3 changes: 0 additions & 3 deletions mprocs.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
procs:
Wasm Pack:
cwd: wasm
shell: watchexec -e rs -- wasm-pack build --debug --target web

Dev Server:
shell: npm run dev

Docs:
cwd: wasm
shell: cargo doc --open
autostart: false

Unit Tests:
cwd: wasm
shell: cargo watch -x test
autostart: false
File renamed without changes.
6 changes: 3 additions & 3 deletions wasm/src/lib.rs → src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
let_chains
)]
#![allow(incomplete_features)]
mod permutation;
mod puzzle;
mod webgl;
pub mod permutation;
pub mod puzzle;
pub mod webgl;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions wasm/.gitignore

This file was deleted.

0 comments on commit bb8fc1c

Please sign in to comment.