Skip to content

Commit

Permalink
Latest typedoc (#28)
Browse files Browse the repository at this point in the history
* Restructure build to align with typedoc and modern typescript build.
  • Loading branch information
cefn committed Apr 30, 2023
1 parent e13165c commit 4aed782
Show file tree
Hide file tree
Showing 53 changed files with 3,434 additions and 2,632 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# Couldn't restore Playwright browser binaries - install from scratch
- name: Install Playwright's dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
#if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: "Run tests (with Github Actions wireit cache)"
Expand Down
3 changes: 1 addition & 2 deletions apps/counter-dom-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@
"../../packages/store:build",
"../../packages/store-follow:build"
],
"command": "tsc && vite build",
"command": "tsc --build && vite build",
"files": [
"src/**/*",
"vite.config.ts",
"tsconfig.build.json",
"../../tsconfig.base.json"
],
"output": [
Expand Down
9 changes: 9 additions & 0 deletions apps/counter-dom-ts/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
4 changes: 3 additions & 1 deletion apps/counter-dom-ts/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true
},
"include": ["playwright.config.ts", "vite.config.ts", "src/**/*", "test/**/*"]
}
5 changes: 2 additions & 3 deletions apps/counter-preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@
"../../packages/store:build",
"../../packages/store-react:build"
],
"command": "tsc && vite build",
"command": "tsc --build && vite build",
"files": [
"src/**/*",
"vite.config.ts",
"tsconfig.build.json",
"../../tsconfig.base.json"
],
"output": [
Expand Down Expand Up @@ -97,4 +96,4 @@
]
}
}
}
}
3 changes: 1 addition & 2 deletions apps/counter-preact-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
"jsx": "react-jsx",
"types": ["vite/client"]
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src"]
}
4 changes: 3 additions & 1 deletion apps/counter-preact-ts/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true
},
"include": ["playwright.config.ts", "vite.config.ts", "src/**/*", "test/**/*"]
}
5 changes: 2 additions & 3 deletions apps/counter-react-ts-edit-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@
"../../packages/store-edit:build",
"../../packages/store-react:build"
],
"command": "tsc && vite build",
"command": "tsc --build && vite build",
"files": [
"src/**/*",
"vite.config.ts",
"tsconfig.build.json",
"../../tsconfig.base.json"
],
"output": [
Expand Down Expand Up @@ -101,4 +100,4 @@
]
}
}
}
}
3 changes: 1 addition & 2 deletions apps/counter-react-ts-edit-context/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
"jsx": "react-jsx",
"types": ["vite/client"]
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src"]
}
4 changes: 3 additions & 1 deletion apps/counter-react-ts-edit-context/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true
},
"include": ["playwright.config.ts", "vite.config.ts", "src/**/*", "test/**/*"]
}
3 changes: 1 addition & 2 deletions apps/counter-react-ts-edit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@
"../../packages/store-edit:build",
"../../packages/store-react:build"
],
"command": "tsc && vite build",
"command": "tsc --build && vite build",
"files": [
"src/**/*",
"vite.config.ts",
"tsconfig.build.json",
"../../tsconfig.base.json"
],
"output": [
Expand Down
3 changes: 1 addition & 2 deletions apps/counter-react-ts-edit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
"jsx": "react-jsx",
"types": ["vite/client"]
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src"]
}
4 changes: 3 additions & 1 deletion apps/counter-react-ts-edit/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true
},
"include": ["playwright.config.ts", "vite.config.ts", "src/**/*", "test/**/*"]
}
5 changes: 2 additions & 3 deletions apps/counter-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@
"../../packages/store:build",
"../../packages/store-react:build"
],
"command": "tsc && vite build",
"command": "tsc --build && vite build",
"files": [
"src/**/*",
"vite.config.ts",
"tsconfig.build.json",
"../../tsconfig.base.json"
],
"output": [
Expand Down Expand Up @@ -96,4 +95,4 @@
]
}
}
}
}
3 changes: 1 addition & 2 deletions apps/counter-react-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
"jsx": "react-jsx",
"types": ["vite/client"]
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src"]
}
4 changes: 3 additions & 1 deletion apps/counter-react-ts/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true
},
"include": ["playwright.config.ts", "vite.config.ts", "src/**/*", "test/**/*"]
}
4 changes: 3 additions & 1 deletion apps/fast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"@lauf/store": "2.0.0-beta.3"
},
"devDependencies": {
"@vitejs/plugin-legacy": "^4.0.3",
"@vitejs/plugin-react": "^4.0.0",
"vite": "^4.2.1",
"wireit": "^0.9.5"
},
Expand Down Expand Up @@ -55,4 +57,4 @@
]
}
}
}
}
21 changes: 21 additions & 0 deletions apps/fast/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["vite/client"]
},
"include": ["src"]
}
9 changes: 9 additions & 0 deletions apps/fast/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
21 changes: 21 additions & 0 deletions apps/tiny/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["vite/client"]
},
"include": ["src"]
}
9 changes: 9 additions & 0 deletions apps/tiny/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}

0 comments on commit 4aed782

Please sign in to comment.