mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
parent
ccb591b887
commit
119ea4cd3d
3 changed files with 7 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ import { Card } from "../src/card.ts";
|
||||||
import { CONSTANTS, parseParams } from "../src/utils.ts";
|
import { CONSTANTS, parseParams } from "../src/utils.ts";
|
||||||
import { COLORS, Theme } from "../src/theme.ts";
|
import { COLORS, Theme } from "../src/theme.ts";
|
||||||
import { Error400 } from "../src/error_page.ts";
|
import { Error400 } from "../src/error_page.ts";
|
||||||
import "https://deno.land/x/dotenv@v0.5.0/load.ts";
|
import "@std/dotenv/load";
|
||||||
import { staticRenderRegeneration } from "../src/StaticRenderRegeneration/index.ts";
|
import { staticRenderRegeneration } from "../src/StaticRenderRegeneration/index.ts";
|
||||||
import { GithubRepositoryService } from "../src/Repository/GithubRepository.ts";
|
import { GithubRepositoryService } from "../src/Repository/GithubRepository.ts";
|
||||||
import { GithubApiService } from "../src/Services/GithubApiService.ts";
|
import { GithubApiService } from "../src/Services/GithubApiService.ts";
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,8 @@
|
||||||
"format": "deno fmt",
|
"format": "deno fmt",
|
||||||
"lint": "deno lint",
|
"lint": "deno lint",
|
||||||
"test": "ENV_TYPE=test deno test --allow-env"
|
"test": "ENV_TYPE=test deno test --allow-env"
|
||||||
|
},
|
||||||
|
"imports": {
|
||||||
|
"@std/dotenv": "jsr:@std/dotenv@^0.224.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
4
main.ts
4
main.ts
|
|
@ -1,4 +1,4 @@
|
||||||
import { serve } from "https://deno.land/std@0.125.0/http/server.ts";
|
import { serve } from "https://deno.land/std@0.224.0/http/server.ts";
|
||||||
import requestHandler from "./api/index.ts";
|
import requestHandler from "./api/index.ts";
|
||||||
|
|
||||||
serve(requestHandler, { port: Number(Deno.env.get("PORT")) || 8080 });
|
serve(requestHandler, { port: Number(Deno.env.get("PORT")) || 8080 });
|
||||||
Loading…
Add table
Reference in a new issue