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 c855b67

Browse files
Create a package.json in the root
1 parent 95ced40 commit c855b67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2059
-5381
lines changed

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

‎backend/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import cors from "cors";
66
import dotenv from "dotenv";
77
import express from "express";
88

9-
import { FileType } from "types";
10-
import { slugify } from "utils/slugify";
9+
import { FileType } from "@types";
10+
import { slugify } from "@utils/slugify";
1111

1212
const env = process.env.NODE_ENV || "local"; // "production" or "local"
1313
dotenv.config({ path: `.env.${env}` });

‎backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"dev": "tsx index.ts",
7+
"dev": "npm run snippets:consolidate && tsx index.ts",
88
"build:snippets": "npm run snippets:consolidate && npm run copy:data",
99
"build": "tsup index.ts --out-dir dist --format esm && npm run build:snippets",
1010
"prestart": "npm run build",

‎backend/scripts/snippetParser.ts

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

180180
export function parseAllSnippets() {
181+
// TODO: Fix the path because it nows run on production
181182
const snippetPath = join(__dirname, "../../snippets");
182183

183184
const languages: ParseLanguageResponse[] = [];

‎frontend/data/consolidated/_index.json

Lines changed: 0 additions & 91 deletions
This file was deleted.

‎frontend/data/consolidated/bash.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
(0)

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