Skip to content

Commit

Permalink
monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Jun 1, 2024
1 parent bfef6b3 commit 15e9830
Show file tree
Hide file tree
Showing 43 changed files with 1,664 additions and 93 deletions.
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ dist-ssr
*.njsproj
*.sln
*.sw?
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
test-results
playwright-report
blob-report
playwright/.cache/
.turbo
4 changes: 1 addition & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ Fork of https://github.com/mjwybrow/edeap

## TODO

- [ ] monorepo (turbo)
- [ ] npm package
- export main class
- export function sync/async
- export config types
- export constants
- update `textDimentions` to be independent of DOM id
- [ ] check if it is possible to implement server side version of `textDimentions`
- pass it as param so it would be possible to have versions for server and client
Expand All @@ -19,6 +16,7 @@ Fork of https://github.com/mjwybrow/edeap
- add pan/zoom to SVG
- [ ] memoization
- [ ] add test for `generateDefaultLayout`
- [ ] use same format as `venn.js`

```ts
// https://github.com/upsetjs/venn.js/blob/main/src/index.d.ts
Expand Down
43 changes: 19 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
{
"name": "edeap-vite",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"e2e": "npx playwright test --ui",
"test": "vitest --exclude 'e2e/**'"
},
"devDependencies": {
"@playwright/test": "^1.44.1",
"@types/node": "^20.12.13",
"typescript": "^5.2.2",
"vite": "^5.2.6",
"vitest": "^1.6.0"
},
"dependencies": {
"@types/qs": "^6.9.15",
"qs": "^6.12.1",
"zod": "^3.23.8"
}
}
"name": "edeap",
"type": "module",
"private": true,
"workspaces": [
"packages/*"
],
"dependencies": {
"turbo": "^1.13.3",
"typescript": "^5.4.5"
},
"scripts": {
"test": "turbo run test",
"build": "turbo run build",
"dev": "turbo run dev",
"clean": "turbo run clean",
"tsc": "turbo run tsc",
"graph": "cyto-nodejs -s tmp/graph.json -d tmp/graph.svg"
}
}
674 changes: 674 additions & 0 deletions packages/demo/LICENSE

Large diffs are not rendered by default.

Empty file added packages/demo/Readme.md
Empty file.
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "edeap-demo",
"version": "0.0.1",
"description": "Euler Diagrams Drawn with Ellipses Area-Proportionally (Edeap)",
"repository": {
"type": "git",
"url": "git+https://github.com/stereobooster/edeap-vite",
"directory": "packages/demo"
},
"author": "stereobooster",
"license": "GPLV3",
"keywords": [
"euler",
"venn",
"diagram"
],
"type": "module",
"exports": {
"types": "./dist/index.d.js",
"default": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"files": [
"./dist/*"
],
"types": "./dist/index.d.js",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"e2e": "npx playwright test --ui",
"test": "vitest --exclude 'e2e/**'",
"clean": "rm -rf dist",
"tsc": "tsc"
},
"devDependencies": {
"@playwright/test": "^1.44.1",
"@types/node": "^20.12.13",
"typescript": "^5.4.5",
"vite": "^5.2.6"
},
"dependencies": {
"@types/qs": "^6.9.15",
"qs": "^6.12.1",
"zod": "^3.23.8",
"edeap": "workspace:*"
}
}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
13 changes: 8 additions & 5 deletions src/main.ts → packages/demo/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { colourPalettes } from "./colors";
import { generateRandomZones } from "./generateRandomZones";
import { HILL_CLIMBING, SIMULATED_ANNEALING } from "./optimizer";
import { parse } from "./parse";
import qs from "qs"; // new URLSearchParams
import { z } from "zod";
import { Edeap } from ".";
import { generateRandomZones } from "./generateRandomZones";
import {
Edeap,
colourPalettes,
HILL_CLIMBING,
SIMULATED_ANNEALING,
parse,
} from "edeap";

function init() {
initUI();
Expand Down
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions packages/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",

"module": "ESNext",
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": ["./src"],
"rootDir": "./src"
}
Loading

0 comments on commit 15e9830

Please sign in to comment.