Commit 01d4ae8f authored by Grant's avatar Grant
Browse files

add object router & ci

parent c80dee9c
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+18 −0
Original line number Diff line number Diff line
include:
  - component: sc07.dev/sc07/ci/package@main

build:
  image: node:23-alpine
  stage: build
  before_script:
    - corepack enable
    - corepack prepare --activate
  script:
    - yarn build
  artifacts:
    untracked: false
    when: on_success
    access: all
    expire_in: "10 minutes"
    paths:
      - dist
+4 −4
Original line number Diff line number Diff line
{
  "name": "@sc07/router",
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "version": "0.0.1",
  "exports": {
    ".": "./dist/index.js"
    "object": "./dist/object/index.js",
    "class": "./dist/class/index.js"
  },
  "packageManager": "yarn@4.2.2",
  "devDependencies": {
    "@tsconfig/recommended": "^1.0.10",
    "@types/express": "^5.0.3",
    "typescript": "^5.8.3"
  },
  "scripts": {
@@ -17,6 +16,7 @@
  },
  "dependencies": {
    "@hey-api/openapi-ts": "^0.77.0",
    "@types/express": "^5.0.3",
    "@types/express-serve-static-core": "^5.0.6",
    "express": "^5.1.0",
    "openapi-typescript": "^7.8.0",
+0 −0

File moved.

+1 −1
Original line number Diff line number Diff line
import Express from "express";
import { RouterBuilder } from "./RouterBuilder";
import type * as Full from "./schema.test";
import type * as Full from "../schema.test";

const { Router, get } = RouterBuilder<Full.paths>();

+0 −0

File moved.

Loading