Skip to content

Commit

Permalink
21221: MAJOR Localized models and implemented top level exports (#14)
Browse files Browse the repository at this point in the history
- Modified the bundling method to use Rollup
  • Loading branch information
lancegliser authored Sep 18, 2024
1 parent b62f7ca commit 64a10c7
Show file tree
Hide file tree
Showing 130 changed files with 21,050 additions and 2,385 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ You can then create the worker client using a url import:
```ts
import howsoUrl from "@/data/engine/howso.caml?url";
import migrationsUrl from "@/data/engine/migrations.caml?url";
import { type ClientOptions, Trainee, WasmClient } from "@howso/engine/wasm";
import { type ClientOptions, Trainee, WasmClient } from "@howso/engine";

const getClient = async (): WasmClient => {
const getClient = async (): Promise<WasmClient> => {
const worker = new Worker(new URL("@/workers/AmalgamWorker", import.meta.url), { type: "module" });
const client = new WasmClient(worker, {
howsoUrl,
Expand Down
18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// @ts-check

import eslint from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
rules: {
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
},
},
);
17 changes: 17 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: "ts-jest",
testEnvironment: "jsdom",
testMatch: ["**/?(*.)+(spec|test).ts?(x)"],
transform: {
"^.+\\.[tj]s$": [
"ts-jest",
{
// Allow importing from /webassembly/
tsconfig: {
allowJs: true,
},
},
],
},
};
Loading

0 comments on commit 64a10c7

Please sign in to comment.