Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn lint-staged --verbose
pnpm lint-staged --verbose
15 changes: 8 additions & 7 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
const path = require("path");

const buildNextEslintCommand = (filenames) =>
`yarn next:lint --fix --file ${filenames
.map((f) => path.relative(path.join("packages", "nextjs"), f))
const buildNextEslintCommand = filenames =>
`pnpm --filter @se-2/nextjs exec next lint --fix --file ${filenames
.map(f => path.relative(path.join("packages", "nextjs"), f))
.join(" --file ")}`;

const checkTypesNextCommand = () => "yarn next:check-types";
const checkTypesNextCommand = () =>
"pnpm --filter @se-2/nextjs run check-types";

const buildHardhatEslintCommand = (filenames) =>
`yarn hardhat:lint-staged --fix ${filenames
.map((f) => path.relative(path.join("packages", "hardhat"), f))
const buildHardhatEslintCommand = filenames =>
`pnpm --filter @se-2/hardhat exec eslint --fix ${filenames
.map(f => path.relative(path.join("packages", "hardhat"), f))
.join(" ")}`;

module.exports = {
Expand Down
78 changes: 39 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
{
"name": "se-2",
"version": "0.0.1",
"packageManager": "[email protected]",
"private": true,
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"account": "yarn foundry:account",
"account:generate": "yarn foundry:generate",
"account:import": "yarn foundry:account-import",
"chain": "yarn foundry:chain",
"compile": "yarn foundry:compile",
"deploy": "yarn foundry:deploy",
"flatten": "yarn foundry:flatten",
"fork": "yarn foundry:fork",
"format": "yarn next:format && yarn foundry:format",
"foundry:account": "yarn workspace @se-2/foundry account",
"foundry:account-import": "yarn workspace @se-2/foundry account:import",
"foundry:chain": "yarn workspace @se-2/foundry chain",
"foundry:clean": "yarn workspace @se-2/foundry clean",
"foundry:compile": "yarn workspace @se-2/foundry compile",
"foundry:deploy": "yarn workspace @se-2/foundry deploy",
"foundry:deploy-verify": "yarn workspace @se-2/foundry deploy:verify",
"foundry:flatten": "yarn workspace @se-2/foundry flatten",
"foundry:fork": "yarn workspace @se-2/foundry fork",
"foundry:format": "yarn workspace @se-2/foundry format",
"foundry:generate": "yarn workspace @se-2/foundry account:generate",
"foundry:lint": "yarn workspace @se-2/foundry lint",
"foundry:test": "yarn workspace @se-2/foundry test",
"foundry:verify": "yarn workspace @se-2/foundry verify",
"generate": "yarn foundry:generate",
"account": "pnpm run foundry:account",
"account:generate": "pnpm run foundry:generate",
"account:import": "pnpm run foundry:account-import",
"chain": "pnpm run foundry:chain",
"compile": "pnpm run foundry:compile",
"deploy": "pnpm run foundry:deploy",
"flatten": "pnpm run foundry:flatten",
"fork": "pnpm run foundry:fork",
"format": "pnpm run next:format && pnpm run foundry:format",
"foundry:account": "pnpm --filter @se-2/foundry run account",
"foundry:account-import": "pnpm --filter @se-2/foundry run account:import",
"foundry:chain": "pnpm --filter @se-2/foundry run chain",
"foundry:clean": "pnpm --filter @se-2/foundry run clean",
"foundry:compile": "pnpm --filter @se-2/foundry run compile",
"foundry:deploy": "pnpm --filter @se-2/foundry run deploy",
"foundry:deploy-verify": "pnpm --filter @se-2/foundry run deploy:verify",
"foundry:flatten": "pnpm --filter @se-2/foundry run flatten",
"foundry:fork": "pnpm --filter @se-2/foundry run fork",
"foundry:format": "pnpm --filter @se-2/foundry run format",
"foundry:generate": "pnpm --filter @se-2/foundry run account:generate",
"foundry:lint": "pnpm --filter @se-2/foundry run lint",
"foundry:test": "pnpm --filter @se-2/foundry run test",
"foundry:verify": "pnpm --filter @se-2/foundry run verify",
"generate": "pnpm run foundry:generate",
"postinstall": "husky install",
"ipfs": "yarn workspace @se-2/nextjs ipfs",
"lint": "yarn next:lint && yarn foundry:lint",
"next:build": "yarn workspace @se-2/nextjs build",
"next:check-types": "yarn workspace @se-2/nextjs check-types",
"next:format": "yarn workspace @se-2/nextjs format",
"next:lint": "yarn workspace @se-2/nextjs lint",
"next:serve": "yarn workspace @se-2/nextjs serve",
"precommit": "lint-staged",
"start": "yarn workspace @se-2/nextjs dev",
"test": "yarn foundry:test",
"vercel": "yarn workspace @se-2/nextjs vercel",
"vercel:login": "yarn workspace @se-2/nextjs vercel:login",
"vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo",
"verify": "yarn foundry:verify"
"ipfs": "pnpm --filter @se-2/nextjs run ipfs",
"lint": "pnpm run next:lint && pnpm run foundry:lint",
"next:build": "pnpm --filter @se-2/nextjs run build",
"next:check-types": "pnpm --filter @se-2/nextjs run check-types",
"next:format": "pnpm --filter @se-2/nextjs run format",
"next:lint": "pnpm --filter @se-2/nextjs run lint",
"next:serve": "pnpm --filter @se-2/nextjs run serve",
"precommit": "pnpm lint-staged",
"start": "pnpm --filter @se-2/nextjs run dev",
"test": "pnpm run foundry:test",
"vercel": "pnpm --filter @se-2/nextjs run vercel",
"vercel:login": "pnpm --filter @se-2/nextjs run vercel:login",
"vercel:yolo": "pnpm --filter @se-2/nextjs run vercel:yolo",
"verify": "pnpm run foundry:verify"
},
"devDependencies": {
"husky": "~9.1.6",
"lint-staged": "~13.2.2"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=20.18.3"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"check-types": "tsc --noEmit --incremental",
"dev": "next dev",
"format": "prettier --write . '!(node_modules|.next|contracts)/**/*'",
"ipfs": "NEXT_PUBLIC_IPFS_BUILD=true yarn build && yarn bgipfs upload config init -u https://upload.bgipfs.com && CID=$(yarn bgipfs upload out | grep -o 'CID: [^ ]*' | cut -d' ' -f2) && [ ! -z \"$CID\" ] && echo '🚀 Upload complete! Your site is now available at: https://community.bgipfs.com/ipfs/'$CID || echo '❌ Upload failed'",
"ipfs": "NEXT_PUBLIC_IPFS_BUILD=true pnpm run build && pnpm exec bgipfs upload config init -u https://upload.bgipfs.com && CID=$(pnpm exec bgipfs upload out | grep -o 'CID: [^ ]*' | cut -d' ' -f2) && [ ! -z \"$CID\" ] && echo '🚀 Upload complete! Your site is now available at: https://community.bgipfs.com/ipfs/'$CID || echo '❌ Upload failed'",
"lint": "next lint",
"serve": "next start",
"start": "next dev",
Expand Down Expand Up @@ -58,5 +58,5 @@
"typescript": "~5.8.2",
"vercel": "~39.1.3"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/nextjs/vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"installCommand": "yarn install"
"installCommand": "pnpm install --frozen-lockfile"
}
Loading
Loading