Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0df9b49

Browse files
Move backend code into src/ folder
1 parent 138f3ca commit 0df9b49

File tree

12 files changed

+6
-8
lines changed

12 files changed

+6
-8
lines changed

‎backend/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"lint": "eslint .",
1111
"format": "prettier --write .",
1212
"format:check": "prettier --check .",
13-
"snippets:check": "tsx ./scripts/checkSnippetFormatting.ts",
14-
"snippets:consolidate": "tsx ./scripts/consolidateSnippets.ts"
13+
"snippets:check": "tsx ./src/scripts/checkSnippetFormatting.ts",
14+
"snippets:consolidate": "tsx ./src/scripts/consolidateSnippets.ts"
1515
},
1616
"keywords": [],
1717
"author": "",

‎backend/index.ts‎ renamed to ‎backend/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { fileURLToPath } from "url";
55
import cors from "cors";
66
import express from "express";
77

8-
import { slugify } from "@utils/slugify";
98
import { FileType } from "@types";
9+
import { slugify } from "@utils/slugify";
1010

1111
export const API_BASE = process.env.API_BASE || "http://localhost:5000";
1212

File renamed without changes.
File renamed without changes.

‎backend/scripts/snippetParser.ts‎ renamed to ‎backend/src/scripts/snippetParser.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function parseLanguage(
178178
}
179179

180180
export function parseAllSnippets() {
181-
const snippetPath = join(__dirname, "../../snippets");
181+
const snippetPath = join(__dirname, "../../../snippets");
182182

183183
const languages: ParseLanguageResponse[] = [];
184184
for (const language of readdirSync(snippetPath)) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /