Set up the Kifu PWA project with decent Makefiles #41

Merged
savanni merged 14 commits from kifu-pwa into main 2023-05-13 16:48:42 +00:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit c87ab6da7f - Show all commits

11
kifu/kifu-pwa/src/main.ts Normal file
View File

@ -0,0 +1,11 @@
import init, { CoreApp } from "kifu-wasm";
const main = async () => {
await init();
let coreApi = new CoreApp();
let response = await coreApi.dispatch({ type: "PlayingField" });
console.log("playing field response: ", response);
};
main();

View File

@ -3,7 +3,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
mode: "development",
entry: {
"kifu-bundle": "./src/converter.ts",
"kifu-bundle": "./src/main.ts",
sw: "./src/sw.js",
},
loader: {