Skip to content

Commit 367326b

Browse files
committed
Fix entropy debug app config
1 parent 50415c1 commit 367326b

30 files changed

+2539
-3940
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ patches/
2020
apps/api-reference
2121
apps/staking
2222
apps/insights
23+
apps/entropy-debug
2324
governance/pyth_staking_sdk
2425
packages/*

apps/entropy-debug/.gitignore

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
12-
13-
# testing
14-
/coverage
15-
16-
# next.js
17-
/.next/
18-
/out/
19-
20-
# production
21-
/build
22-
23-
# misc
24-
.DS_Store
25-
*.pem
26-
27-
# debug
28-
npm-debug.log*
29-
yarn-debug.log*
30-
yarn-error.log*
31-
32-
# env files (can opt-in for committing if needed)
33-
.env*
34-
35-
# vercel
36-
.vercel
37-
38-
# typescript
39-
*.tsbuildinfo
40-
next-env.d.ts
1+
.env*.local

apps/entropy-debug/.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.next/
2+
coverage/
3+
node_modules/
4+
*.tsbuildinfo
5+
.env*.local
6+
.env
7+
.DS_Store

apps/entropy-debug/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { nextjs as default } from "@cprussin/eslint-config";

apps/entropy-debug/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { nextjs as default } from "@cprussin/jest-config";

apps/entropy-debug/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/entropy-debug/next.config.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
const config = {
2+
reactStrictMode: true,
3+
4+
pageExtensions: ["ts", "tsx", "mdx"],
5+
6+
logging: {
7+
fetches: {
8+
fullUrl: true,
9+
},
10+
},
11+
12+
webpack(config) {
13+
config.resolve.extensionAlias = {
14+
".js": [".js", ".ts", ".tsx"],
15+
};
16+
17+
return config;
18+
},
19+
20+
headers: async () => [
21+
{
22+
source: "/:path*",
23+
headers: [
24+
{
25+
key: "X-XSS-Protection",
26+
value: "1; mode=block",
27+
},
28+
{
29+
key: "Referrer-Policy",
30+
value: "strict-origin-when-cross-origin",
31+
},
32+
{
33+
key: "Strict-Transport-Security",
34+
value: "max-age=2592000",
35+
},
36+
{
37+
key: "X-Content-Type-Options",
38+
value: "nosniff",
39+
},
40+
{
41+
key: "Permissions-Policy",
42+
value:
43+
"vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=self",
44+
},
45+
],
46+
},
47+
],
48+
};
49+
export default config;

apps/entropy-debug/next.config.ts

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

apps/entropy-debug/package.json

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,53 @@
11
{
2-
"name": "entropy-debug-app",
3-
"version": "0.1.0",
2+
"name": "@pythnetwork/entropy-debug",
3+
"version": "0.0.0",
44
"private": true,
5-
"proxy": "http://localhost:3000",
5+
"type": "module",
6+
"engines": {
7+
"node": "20"
8+
},
69
"scripts": {
7-
"dev": "next dev",
810
"build": "next build",
9-
"start": "next start",
10-
"lint": "next lint"
11+
"fix:format": "prettier --write .",
12+
"fix:lint": "eslint --fix .",
13+
"start:dev": "next dev --port 3004",
14+
"start:prod": "next start --port 3004",
15+
"test:format": "prettier --check .",
16+
"test:lint": "eslint .",
17+
"test:types": "tsc"
1118
},
1219
"dependencies": {
1320
"@radix-ui/react-select": "^2.1.2",
1421
"@radix-ui/react-slot": "^1.1.0",
1522
"@radix-ui/react-switch": "^1.1.1",
1623
"class-variance-authority": "^0.7.1",
17-
"clsx": "^2.1.1",
24+
"clsx": "catalog:",
1825
"ethers": "^6.13.4",
1926
"highlight.js": "^11.10.0",
2027
"lucide-react": "^0.465.0",
21-
"next": "15.0.3",
22-
"react": "19.0.0-rc-66855b96-20241106",
23-
"react-dom": "19.0.0-rc-66855b96-20241106",
28+
"next": "catalog:",
29+
"react": "catalog:",
30+
"react-dom": "catalog:",
2431
"tailwind-merge": "^2.5.5",
2532
"tailwindcss-animate": "^1.0.7",
26-
"viem": "^2.21.53"
33+
"viem": "^2.21.53",
34+
"zod": "catalog:"
2735
},
2836
"devDependencies": {
29-
"@types/node": "^20",
30-
"@types/react": "^18",
31-
"@types/react-dom": "^18",
32-
"eslint": "^8",
33-
"eslint-config-next": "15.0.3",
34-
"postcss": "^8",
35-
"tailwindcss": "^3.4.1",
36-
"typescript": "^5"
37+
"@cprussin/eslint-config": "catalog:",
38+
"@cprussin/jest-config": "catalog:",
39+
"@cprussin/prettier-config": "catalog:",
40+
"@cprussin/tsconfig": "catalog:",
41+
"@types/jest": "catalog:",
42+
"@types/node": "catalog:",
43+
"@types/react": "catalog:",
44+
"@types/react-dom": "catalog:",
45+
"eslint": "catalog:",
46+
"jest": "catalog:",
47+
"postcss": "catalog:",
48+
"prettier": "catalog:",
49+
"tailwindcss": "catalog:",
50+
"typescript": "catalog:",
51+
"vercel": "catalog:"
3752
}
3853
}

0 commit comments

Comments
 (0)