@webpieces/server 0.0.0-dev
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 +49 -0
- package/package.json +33 -0
- package/src/index.js +13 -0
- package/src/index.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @webpieces/server
|
|
2
|
+
|
|
3
|
+
Umbrella package for WebPieces server-side development. This package installs all necessary dependencies for building WebPieces server applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @webpieces/server
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## What's Included
|
|
12
|
+
|
|
13
|
+
This package installs:
|
|
14
|
+
|
|
15
|
+
- `@webpieces/http-server` - WebPieces server with filter chain and DI
|
|
16
|
+
- `@webpieces/http-routing` - Decorator-based routing with auto-wiring
|
|
17
|
+
- `@webpieces/http-filters` - Filter chain infrastructure
|
|
18
|
+
- `@webpieces/http-api` - HTTP API decorators for REST APIs
|
|
19
|
+
- `@webpieces/core-meta` - Core metadata interfaces
|
|
20
|
+
- `@webpieces/core-context` - AsyncLocalStorage-based context management
|
|
21
|
+
- `@webpieces/core-util` - Utility functions
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
After installation, import from the constituent packages:
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { WebpiecesServer } from '@webpieces/http-server';
|
|
29
|
+
import { Controller, provideSingleton } from '@webpieces/http-routing';
|
|
30
|
+
import { WebAppMeta } from '@webpieces/core-meta';
|
|
31
|
+
|
|
32
|
+
// Your server code here...
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Version Compatibility
|
|
36
|
+
|
|
37
|
+
All @webpieces packages use lock-step versioning. Always use matching versions:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@webpieces/server": "0.2.10"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
Apache-2.0
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webpieces/server",
|
|
3
|
+
"version": "0.0.0-dev",
|
|
4
|
+
"description": "Umbrella package for WebPieces server-side dependencies",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"author": "Dean Hiller",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/deanhiller/webpieces-ts.git",
|
|
11
|
+
"directory": "packages/server"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"webpieces",
|
|
15
|
+
"server",
|
|
16
|
+
"framework",
|
|
17
|
+
"umbrella"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@webpieces/http-server": "0.0.0-dev",
|
|
24
|
+
"@webpieces/http-routing": "0.0.0-dev",
|
|
25
|
+
"@webpieces/http-filters": "0.0.0-dev",
|
|
26
|
+
"@webpieces/http-api": "0.0.0-dev",
|
|
27
|
+
"@webpieces/core-meta": "0.0.0-dev",
|
|
28
|
+
"@webpieces/core-context": "0.0.0-dev",
|
|
29
|
+
"@webpieces/core-util": "0.0.0-dev"
|
|
30
|
+
},
|
|
31
|
+
"types": "./src/index.d.ts",
|
|
32
|
+
"main": "./src/index.js"
|
|
33
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @webpieces/server - Umbrella package for server-side dependencies
|
|
4
|
+
*
|
|
5
|
+
* This is a Maven-style umbrella package that installs all server-side dependencies.
|
|
6
|
+
* Do not import from this package directly. Instead, import from constituent packages:
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { WebpiecesServer } from '@webpieces/http-server';
|
|
10
|
+
* import { Controller } from '@webpieces/http-routing';
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/server/src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG","sourcesContent":["/**\n * @webpieces/server - Umbrella package for server-side dependencies\n *\n * This is a Maven-style umbrella package that installs all server-side dependencies.\n * Do not import from this package directly. Instead, import from constituent packages:\n *\n * @example\n * import { WebpiecesServer } from '@webpieces/http-server';\n * import { Controller } from '@webpieces/http-routing';\n */\n\n// This file exists only to satisfy build requirements.\n// Users should import from constituent packages, not from this umbrella package.\nexport {};\n"]}
|