diff --git a/.github/workflows/generate-theme-doc.yml b/.github/workflows/generate-theme-doc.yml index 11d7377e..72c437ec 100644 --- a/.github/workflows/generate-theme-doc.yml +++ b/.github/workflows/generate-theme-doc.yml @@ -4,7 +4,7 @@ on: branches: - master paths: - - "../../.vercel/output/functions/api.func/core-app/themes/index.js" + - ".vercel/output/functions/api.func/core-app/themes/index.js" permissions: actions: read diff --git a/.github/workflows/preview-theme.yml b/.github/workflows/preview-theme.yml index 4bbc0c55..aae1a562 100644 --- a/.github/workflows/preview-theme.yml +++ b/.github/workflows/preview-theme.yml @@ -5,7 +5,7 @@ on: branches: - master paths: - - "../../.vercel/output/functions/api.func/core-app/themes/index.js" + - ".vercel/output/functions/api.func/core-app/themes/index.js" permissions: actions: read diff --git a/jest.bench.config.js b/.vercel/output/functions/api.func/core-app/jest.bench.config.js similarity index 100% rename from jest.bench.config.js rename to .vercel/output/functions/api.func/core-app/jest.bench.config.js diff --git a/jest.config.js b/.vercel/output/functions/api.func/core-app/jest.config.js similarity index 70% rename from jest.config.js rename to .vercel/output/functions/api.func/core-app/jest.config.js index 299d3e10..c0e1fa59 100644 --- a/jest.config.js +++ b/.vercel/output/functions/api.func/core-app/jest.config.js @@ -7,15 +7,15 @@ export default { "/.vercel/output/functions/api.func/core-app/tests/setup.jest.js", ], testPathIgnorePatterns: [ - "/node_modules/", + "/.vercel/output/functions/api.func/core-app/node_modules/", "/.vercel/output/functions/api.func/core-app/tests/e2e/", ], modulePathIgnorePatterns: [ - "/node_modules/", + "/.vercel/output/functions/api.func/core-app/node_modules/", "/.vercel/output/functions/api.func/core-app/tests/e2e/", ], coveragePathIgnorePatterns: [ - "/node_modules/", + "/.vercel/output/functions/api.func/core-app/node_modules/", "/.vercel/output/functions/api.func/core-app/tests/E2E/", ], }; diff --git a/jest.e2e.config.js b/.vercel/output/functions/api.func/core-app/jest.e2e.config.js similarity index 100% rename from jest.e2e.config.js rename to .vercel/output/functions/api.func/core-app/jest.e2e.config.js diff --git a/package-lock.json b/.vercel/output/functions/api.func/core-app/package-lock.json similarity index 100% rename from package-lock.json rename to .vercel/output/functions/api.func/core-app/package-lock.json diff --git a/package.json b/.vercel/output/functions/api.func/core-app/package.json similarity index 84% rename from package.json rename to .vercel/output/functions/api.func/core-app/package.json index b610107c..2366d2d3 100644 --- a/package.json +++ b/.vercel/output/functions/api.func/core-app/package.json @@ -8,7 +8,7 @@ "cards", "card-generator" ], - "main": ".vercel/output/functions/api.func/core-app/src/index.js", + "main": "src/index.js", "type": "module", "homepage": "https://github.com/anuraghazra/github-readme-stats", "bugs": { @@ -27,10 +27,10 @@ "preview-theme": "node scripts/preview-theme", "close-stale-theme-prs": "node scripts/close-stale-theme-prs", "generate-langs-json": "node scripts/generate-langs-json", - "format": "prettier --write .", - "format:check": "prettier --check .", + "format": "prettier --write ../../../../..", + "format:check": "prettier --check ../../../../..", "prepare": "husky", - "lint": "npx eslint --max-warnings 0 \".vercel/output/functions/api.func/core-app/src/**/*.js\" \"./scripts/**/*.js\" \".vercel/output/functions/api.func/core-app/tests/**/*.js\" \".vercel/output/functions/api.func/core-app/api/**/*.js\" \".vercel/output/functions/api.func/core-app/themes/**/*.js\"", + "lint": "npx eslint --max-warnings 0 \"./src/**/*.js\" \"./scripts/**/*.js\" \"./tests/**/*.js\" \"./api/**/*.js\" \"./themes/**/*.js\"", "bench": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.bench.config.js" }, "author": "Anurag Hazra", diff --git a/scripts/close-stale-theme-prs.js b/.vercel/output/functions/api.func/core-app/scripts/close-stale-theme-prs.js similarity index 100% rename from scripts/close-stale-theme-prs.js rename to .vercel/output/functions/api.func/core-app/scripts/close-stale-theme-prs.js diff --git a/scripts/generate-langs-json.js b/.vercel/output/functions/api.func/core-app/scripts/generate-langs-json.js similarity index 100% rename from scripts/generate-langs-json.js rename to .vercel/output/functions/api.func/core-app/scripts/generate-langs-json.js diff --git a/scripts/generate-theme-doc.js b/.vercel/output/functions/api.func/core-app/scripts/generate-theme-doc.js similarity index 97% rename from scripts/generate-theme-doc.js rename to .vercel/output/functions/api.func/core-app/scripts/generate-theme-doc.js index 72184653..1716ea6e 100644 --- a/scripts/generate-theme-doc.js +++ b/.vercel/output/functions/api.func/core-app/scripts/generate-theme-doc.js @@ -1,5 +1,5 @@ import fs from "fs"; -import { themes } from "../.vercel/output/functions/api.func/core-app/themes/index.js"; +import { themes } from "../themes/index.js"; const TARGET_FILE = "./themes/README.md"; const REPO_CARD_LINKS_FLAG = ""; diff --git a/scripts/helpers.js b/.vercel/output/functions/api.func/core-app/scripts/helpers.js similarity index 100% rename from scripts/helpers.js rename to .vercel/output/functions/api.func/core-app/scripts/helpers.js diff --git a/scripts/preview-theme.js b/.vercel/output/functions/api.func/core-app/scripts/preview-theme.js similarity index 99% rename from scripts/preview-theme.js rename to .vercel/output/functions/api.func/core-app/scripts/preview-theme.js index 47504feb..0f6de372 100644 --- a/scripts/preview-theme.js +++ b/.vercel/output/functions/api.func/core-app/scripts/preview-theme.js @@ -12,8 +12,8 @@ import Hjson from "hjson"; import snakeCase from "lodash.snakecase"; import parse from "parse-diff"; import { inspect } from "util"; -import { isValidHexColor, isValidGradient } from "../.vercel/output/functions/api.func/core-app/src/common/utils.js"; -import { themes } from "../.vercel/output/functions/api.func/core-app/themes/index.js"; +import { isValidHexColor, isValidGradient } from "../src/common/utils.js"; +import { themes } from "../themes/index.js"; import { getGithubToken, getRepoInfo } from "./helpers.js"; const COMMENTER = "github-actions[bot]"; diff --git a/scripts/push-theme-readme.sh b/.vercel/output/functions/api.func/core-app/scripts/push-theme-readme.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/push-theme-readme.sh rename to .vercel/output/functions/api.func/core-app/scripts/push-theme-readme.sh diff --git a/express.js b/express.js deleted file mode 100644 index 71bdd907..00000000 --- a/express.js +++ /dev/null @@ -1,16 +0,0 @@ -import "dotenv/config"; -import statsCard from "./.vercel/output/functions/api.func/core-app/api/index.js"; -import repoCard from "./.vercel/output/functions/api.func/core-app/api/pin.js"; -import langCard from "./.vercel/output/functions/api.func/core-app/api/top-langs.js"; -import wakatimeCard from "./.vercel/output/functions/api.func/core-app/api/wakatime.js"; -import gistCard from "./.vercel/output/functions/api.func/core-app/api/gist.js"; -import express from "express"; - -const app = express(); -app.listen(process.env.port || 9000); - -app.get("/", statsCard); -app.get("/pin", repoCard); -app.get("/top-langs", langCard); -app.get("/wakatime", wakatimeCard); -app.get("/gist", gistCard);