Jet Pham
+ +Software Extremist
+diff --git a/cgol/src/lib.rs b/cgol/src/lib.rs index df2ac6a..60fd1bd 100644 --- a/cgol/src/lib.rs +++ b/cgol/src/lib.rs @@ -9,7 +9,7 @@ use wasm_bindgen::JsCast; use js_sys::Math; use web_sys::{CanvasRenderingContext2d, HtmlCanvasElement, ImageData, Window}; -const CELL_SIZE: u32 = 20; +const CELL_SIZE: u32 = 10; const TICK_MS: f64 = 1000.0 / 60.0; const HUE_PERIOD_MS: f64 = 3000.0; diff --git a/eslint.config.js b/eslint.config.js index ba1ebf8..46809a3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,7 @@ export default tseslint.config( ignores: ['dist', 'cgol/pkg/**/*'] }, { - files: ['**/*.ts', '**/*.tsx'], + files: ['**/*.ts'], extends: [ ...tseslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked, diff --git a/flake.nix b/flake.nix index 1cc8ff4..2170656 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ buildPhase = '' export HOME=$TMPDIR cd cgol && wasm-pack build --release --target web && cd .. + wasm-opt cgol/pkg/cgol_bg.wasm -o cgol/pkg/cgol_bg.wasm -O4 --enable-bulk-memory --enable-nontrapping-float-to-int --enable-sign-ext --low-memory-unused --converge npm ci npm run build ''; @@ -40,5 +41,7 @@ ]; }; } - )); + )) // { + nixosModules.default = import ./module.nix self; + }; } diff --git a/index.html b/index.html index 448ffb1..1de783c 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,136 @@
Software Extremist
+