moving more files, adapting more paths
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,15 +7,15 @@ export default {
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/tests/setup.jest.js",
|
||||
],
|
||||
testPathIgnorePatterns: [
|
||||
"<rootDir>/node_modules/",
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/node_modules/",
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/tests/e2e/",
|
||||
],
|
||||
modulePathIgnorePatterns: [
|
||||
"<rootDir>/node_modules/",
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/node_modules/",
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/tests/e2e/",
|
||||
],
|
||||
coveragePathIgnorePatterns: [
|
||||
"<rootDir>/node_modules/",
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/node_modules/",
|
||||
"<rootDir>/.vercel/output/functions/api.func/core-app/tests/E2E/",
|
||||
],
|
||||
};
|
||||
@@ -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",
|
||||
+1
-1
@@ -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 = "<!-- REPO_CARD_LINKS -->";
|
||||
+2
-2
@@ -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]";
|
||||
Executable → Regular
-16
@@ -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);
|
||||
Reference in New Issue
Block a user