Skip to content

Commit

Permalink
♻️ Refactor interface pnpm Scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 2, 2024
1 parent ff43c66 commit 26f75cd
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 60 deletions.
50 changes: 27 additions & 23 deletions interface/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,34 @@
/**
* @type {import('next').NextConfig}
**/
const nextConfig = {
/**
* Enable static exports for the App Router.
*
* @see https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
*/
output: "export",
const nextConfig =
// Check if running in a Continuous Integration (CI) environment.
process.env.CI === "true"
? {
/**
* Enable static exports for the App Router.
* @see https://nextjs.org/docs/pages/building-your-application/deploying/static-exports.
*/
output: "export",

/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
*
* @see https://nextjs.org/docs/pages/api-reference/components/image#unoptimized
*/
images: {
unoptimized: true,
},
/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
* @see https://nextjs.org/docs/pages/api-reference/components/image#unoptimized.
*/
images: {
unoptimized: true,
},

/**
* Use a custom build directory instead of `.next`.
*
* @see https://nextjs.org/docs/pages/api-reference/next-config-js/distDir
*/
distDir: "dist",
};
/**
* Use a custom build directory instead of `.next`.
* @see https://nextjs.org/docs/pages/api-reference/next-config-js/distDir.
*/
distDir: "dist",
}
: // For local development, just set a custom build directory instead of `.next`.
{
distDir: "dist",
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,18 @@
"deploy:superseedtestnet": "npx hardhat run --no-compile --network superseedTestnet scripts/deploy.ts",
"deploy:storytestnet": "npx hardhat run --no-compile --network storyTestnet scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "cd interface && pnpm prettier:check",
"prettier:check:interface": "pnpm -C interface prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix:interface": "cd interface && pnpm prettier:fix",
"prettier:fix:interface": "pnpm -C interface prettier:fix",
"solhint:check": "npx solhint -c src/.solhint.json \"src/**/*.sol\" && npx solhint -c test/.solhint-tests.json \"test/**/*.sol\"",
"solhint:fix": "npx solhint -c src/.solhint.json \"src/**/*.sol\" --fix && npx solhint -c test/.solhint-tests.json \"test/**/*.sol\" --fix",
"lint:check": "pnpm prettier:check && pnpm solhint:check && npx eslint .",
"lint:check:interface": "cd interface && pnpm lint:check",
"lint:check:interface": "pnpm -C interface lint:check",
"lint:fix": "pnpm prettier:fix && pnpm solhint:fix && npx eslint . --fix",
"lint:fix:interface": "cd interface && pnpm lint:fix",
"dev:interface": "cd interface && pnpm dev",
"build:interface": "cd interface && pnpm build",
"start:interface": "cd interface && pnpm start"
"lint:fix:interface": "pnpm -C interface lint:fix",
"dev:interface": "pnpm -C interface dev",
"build:interface": "pnpm -C interface build",
"start:interface": "pnpm -C interface start"
},
"devDependencies": {
"@eslint/js": "^9.16.0",
Expand Down
60 changes: 32 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26f75cd

Please sign in to comment.