@gmahechas-org/common-be-ts-express 0.0.0-stage → 0.0.11

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.
@@ -0,0 +1,9 @@
1
+ export interface AppConfigBase {
2
+ port: number;
3
+ }
4
+ export declare abstract class AppBase<C extends AppConfigBase = AppConfigBase> {
5
+ protected readonly config: C;
6
+ protected constructor(config: C);
7
+ abstract startServer(): void;
8
+ }
9
+ //# sourceMappingURL=express-app-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express-app-base.d.ts","sourceRoot":"","sources":["../src/express-app-base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;CACb;AAED,8BAAsB,OAAO,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACpE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7B,SAAS,aAAa,MAAM,EAAE,CAAC,EAE9B;IAED,SAAgB,WAAW,IAAI,IAAI,CAAC;CACpC"}
@@ -0,0 +1,6 @@
1
+ export class AppBase {
2
+ config;
3
+ constructor(config) {
4
+ this.config = config;
5
+ }
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './lib/express/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/express/index.js';
@@ -0,0 +1,9 @@
1
+ import { type Application } from 'express';
2
+ import { AppBase } from '../../express-app-base.ts';
3
+ import type { ExpressAppConfig } from './express.types.ts';
4
+ export declare class ExpressApp extends AppBase<ExpressAppConfig> {
5
+ readonly app: Application;
6
+ constructor(config: ExpressAppConfig);
7
+ startServer(): void;
8
+ }
9
+ //# sourceMappingURL=express.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../src/lib/express/express.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,qBAAa,UAAW,SAAQ,OAAO,CAAC,gBAAgB,CAAC;IACxD,SAAgB,GAAG,EAAE,WAAW,CAAC;IAEjC,YAAY,MAAM,EAAE,gBAAgB,EAGnC;IAEM,WAAW,IAAI,IAAI,CAKzB;CACD"}
@@ -0,0 +1,15 @@
1
+ import express from 'express';
2
+ import { AppBase } from '../../express-app-base.js';
3
+ export class ExpressApp extends AppBase {
4
+ app;
5
+ constructor(config) {
6
+ super(config);
7
+ this.app = express();
8
+ }
9
+ startServer() {
10
+ const port = this.config.port;
11
+ this.app.listen(port, () => {
12
+ console.log(`🚀 Server running on port ${port}`);
13
+ });
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ import type { Request, Response, NextFunction } from 'express';
2
+ import type { AppConfigBase } from '../../express-app-base.ts';
3
+ export type { Request, Response, NextFunction };
4
+ export type ExpressAppConfig = AppConfigBase;
5
+ //# sourceMappingURL=express.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.types.d.ts","sourceRoot":"","sources":["../../../src/lib/express/express.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Router } from 'express';
2
+ //# sourceMappingURL=express.values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.values.d.ts","sourceRoot":"","sources":["../../../src/lib/express/express.values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export { Router } from 'express';
@@ -0,0 +1,4 @@
1
+ export * from './express.ts';
2
+ export * from './express.types.ts';
3
+ export * from './express.values.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/express/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './express.js';
2
+ export * from './express.types.js';
3
+ export * from './express.values.js';
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
- "name": "@gmahechas-org/common-be-ts-express",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@gmahechas-org/common-be-ts-express",
3
+ "version": "0.0.11",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "dev": "./src/index.ts",
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "!**/*.tsbuildinfo"
19
+ ],
20
+ "scripts": {
21
+ "cleanup": "rm -rf ./node_modules ./dist",
22
+ "build": "tsc -p tsconfig.json",
23
+ "typecheck": "tsc -p tsconfig.json --noEmit",
24
+ "biome": "biome check --write ./src",
25
+ "prepack": "pnpm run build"
26
+ },
27
+ "dependencies": {
28
+ "express": "5.1.0"
29
+ },
30
+ "devDependencies": {
31
+ "@types/express": "5.0.3"
32
+ }
33
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.