Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run tsc examples 2 #969

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "../tsconfig.json",
"references": [
{ "path": "01_template" },
{ "path": "03_demo" },
{ "path": "04_cssmodules" },
{ "path": "11_fs-router" },
{ "path": "12_nossr" },
{ "path": "21_create-pages" },
{ "path": "22_define-router" },
{ "path": "31_minimal" },
{ "path": "33_promise" },
{ "path": "34_functions" },
{ "path": "35_nesting" },
{ "path": "36_form" },
{ "path": "37_css" },
{ "path": "38_cookies" },
{ "path": "39_api" },
{ "path": "41_path-alias" },
{ "path": "42_react-tweet" },
{ "path": "43_weave-render" }
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "pnpm -r --filter='./packages/*' run dev",
"compile": "pnpm -r --filter='./packages/*' run compile",
"csb-install-FIXME": "pnpm install --no-frozen-lockfile",
"test": "prettier -c . && eslint . && tsc -b && tsc -b --noEmit `find examples -mindepth 1 -maxdepth 1 -type d ! -name '*_js'` && pnpm run --filter waku test",
"test": "prettier -c . && eslint . && tsc -b && tsc -b --noEmit examples && pnpm run --filter waku test",
"e2e": "playwright test",
"examples:dev": "(cd ./examples/${NAME} && pnpm run dev)",
"examples:build": "(cd ./examples/${NAME} && pnpm run build)",
Expand Down
56 changes: 14 additions & 42 deletions tsconfig.e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,19 @@
},
"include": ["playwright.config.base.ts", "playwright.config.ts", "./e2e"],
"references": [
{
"path": "./e2e/fixtures/rsc-basic/tsconfig.json"
},
{
"path": "./e2e/fixtures/rsc-css-modules/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssr-basic/tsconfig.json"
},
{
"path": "./e2e/fixtures/rsc-router/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssr-target-bundle/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssr-swr/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssr-context-provider/tsconfig.json"
},
{
"path": "./e2e/fixtures/render-type/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssg-performance/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssg-wildcard/tsconfig.json"
},
{
"path": "./e2e/fixtures/partial-build/tsconfig.json"
},
{
"path": "./e2e/fixtures/ssr-catch-error/tsconfig.json"
},
{
"path": "./e2e/fixtures/use-router/tsconfig.json"
},
{
"path": "./e2e/fixtures/broken-links/tsconfig.json"
}
{ "path": "./e2e/fixtures/rsc-basic/tsconfig.json" },
{ "path": "./e2e/fixtures/rsc-css-modules/tsconfig.json" },
{ "path": "./e2e/fixtures/ssr-basic/tsconfig.json" },
{ "path": "./e2e/fixtures/rsc-router/tsconfig.json" },
{ "path": "./e2e/fixtures/ssr-target-bundle/tsconfig.json" },
{ "path": "./e2e/fixtures/ssr-swr/tsconfig.json" },
{ "path": "./e2e/fixtures/ssr-context-provider/tsconfig.json" },
{ "path": "./e2e/fixtures/render-type/tsconfig.json" },
{ "path": "./e2e/fixtures/ssg-performance/tsconfig.json" },
{ "path": "./e2e/fixtures/ssg-wildcard/tsconfig.json" },
{ "path": "./e2e/fixtures/partial-build/tsconfig.json" },
{ "path": "./e2e/fixtures/ssr-catch-error/tsconfig.json" },
{ "path": "./e2e/fixtures/use-router/tsconfig.json" },
{ "path": "./e2e/fixtures/broken-links/tsconfig.json" }
]
}
20 changes: 5 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,12 @@
"include": [],
"references": [
// Packages
{
"path": "./packages/waku"
},
{
"path": "./packages/create-waku"
},
{
"path": "./packages/website"
},
{ "path": "./packages/waku" },
{ "path": "./packages/create-waku" },
{ "path": "./packages/website" },
// E2E
{
"path": "./tsconfig.e2e.json"
},
{ "path": "./tsconfig.e2e.json" },
// Test
{
"path": "./packages/waku/tests"
}
{ "path": "./packages/waku/tests" }
]
}
Loading