Skip to content

Commit

Permalink
feat: config (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc authored Nov 5, 2024
1 parent c6a841e commit 91242b2
Show file tree
Hide file tree
Showing 10 changed files with 326 additions and 81 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@
/examples/*/src/.tnf
/examples/*/dist
/examples/*/node_modules
# Playwright
/test-results/
/playwright-report/
/playwright/.cache/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ $ npx serve dist

- `@umijs/tnf/router`: The router module, reexported from `@tanstack/react-router`.

## Config

Config is loaded from `.tnfrc.ts` by default.

- `externals: Record<string, string>`: An object that maps package names to their corresponding paths.
- `devServer: { port?: number; host?: string; https?: { hosts?: string[] }; ip?: string }`: The development server configuration.

## LICENSE

[MIT](LICENSE)
1 change: 1 addition & 0 deletions examples/normal/.tnfrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@types/spdy": "^3.4.9",
"@types/yargs-parser": "^21.0.3",
"@umijs/mako": "^0.9.3",
"c12": "^2.0.1",
"chokidar": "^4.0.1",
"compression": "^1.7.5",
"connect-history-api-fallback": "^2.0.0",
Expand All @@ -51,7 +52,8 @@
"react": "19.0.0-rc-02c0e824-20241028",
"react-dom": "19.0.0-rc-02c0e824-20241028",
"spdy": "^4.0.2",
"yargs-parser": "^21.1.1"
"yargs-parser": "^21.1.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
Expand Down
Loading

0 comments on commit 91242b2

Please sign in to comment.