@owlmeans/router 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -16
- package/package.json +4 -3
- package/tsconfig.json +6 -11
package/README.md
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @owlmeans/router
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Internal router service for the OwlMeans module system.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Provides the `RouterService` that attaches modules to a runtime router (e.g. Express, Bun's HTTP server)
|
|
8
|
+
- Used internally by `@owlmeans/server-route` and `@owlmeans/client-route`
|
|
9
|
+
- Not typically used directly in application code
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
8
12
|
|
|
9
13
|
```bash
|
|
10
|
-
|
|
11
|
-
cd packages/your-new-package
|
|
14
|
+
bun add @owlmeans/router
|
|
12
15
|
```
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
- `package.json` - Change the package name and dependencies
|
|
16
|
-
- `README.md` - Replace with proper documentation following OwlMeans standards
|
|
17
|
-
- `src/index.ts` - Implement your package functionality
|
|
18
|
-
|
|
19
|
-
## Template Structure
|
|
17
|
+
## Related Packages
|
|
20
18
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- **README.md** - This template documentation (replace with actual docs)
|
|
19
|
+
- [`@owlmeans/server-route`](../server-route) — server-side router implementation
|
|
20
|
+
- [`@owlmeans/client-route`](../client-route) — client-side router implementation
|
|
21
|
+
- [`@owlmeans/module`](../module) — modules registered with the router
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/context": "^0.1.
|
|
24
|
+
"@owlmeans/context": "^0.1.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "*"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@owlmeans/dep-config": "workspace:*",
|
|
30
31
|
"@types/node": "^24.10.1",
|
|
31
32
|
"@types/react": "^19.2.7",
|
|
32
33
|
"nodemon": "^3.1.11",
|
|
33
|
-
"typescript": "^
|
|
34
|
+
"typescript": "^6.0.2"
|
|
34
35
|
},
|
|
35
36
|
"publishConfig": {
|
|
36
37
|
"access": "public"
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": [
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"@owlmeans/dep-config/tsconfig.base.json",
|
|
4
|
+
"@owlmeans/dep-config/tsconfig.react.json"
|
|
5
5
|
],
|
|
6
6
|
"compilerOptions": {
|
|
7
|
-
"rootDir": "./src/",
|
|
8
|
-
"outDir": "./build/"
|
|
9
|
-
"moduleResolution": "Bundler",
|
|
7
|
+
"rootDir": "./src/",
|
|
8
|
+
"outDir": "./build/"
|
|
10
9
|
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
|
|
13
|
-
"./build/**/*",
|
|
14
|
-
"./*.ts"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
10
|
+
"exclude": ["./dist/**/*", "./build/**/*", "./*.ts"]
|
|
11
|
+
}
|