Skip to content

Commit 0df9b49

Browse files
committed
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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy