Skip to content

Commit

Permalink
[ECO-2391] Ignore lint/type errors when building the frontend Docker …
Browse files Browse the repository at this point in the history
…container (#340)
  • Loading branch information
xbtmatt authored Nov 12, 2024
1 parent b551ed6 commit 192f179
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/docker/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ ENV HASH_SEED=$HASH_SEED \
REVALIDATION_TIME=$REVALIDATION_TIME \
EMOJICOIN_INDEXER_URL=$EMOJICOIN_INDEXER_URL

RUN ["bash", "-c", "pnpm install && pnpm run build"]
RUN ["bash", "-c", "pnpm install && pnpm run build:no-checks"]

CMD ["bash", "-c", "pnpm run start -- -H 0.0.0.0"]
1 change: 1 addition & 0 deletions src/typescript/frontend/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const nextConfig = {
crossOrigin: "use-credentials",
typescript: {
tsconfigPath: "tsconfig.json",
ignoreBuildErrors: process.env.IGNORE_BUILD_ERRORS === "true",
},
compiler: {
styledComponents: DEBUG ? styledComponentsConfig : true,
Expand Down
1 change: 1 addition & 0 deletions src/typescript/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"_format": "prettier './**/*.{js,jsx,ts,tsx,css,md}' --config ./.prettierrc.js",
"build": "next build",
"build:debug": "BUILD_DEBUG=true next build --no-lint --no-mangling --debug",
"build:no-checks": "IGNORE_BUILD_ERRORS=true next build --no-lint",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .next",
"dev": "NODE_OPTIONS='--inspect' next dev --turbo --port 3001",
"format": "pnpm _format --write",
Expand Down
1 change: 1 addition & 0 deletions src/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"build": "pnpm i && pnpm load-env:test -- turbo run build",
"build:debug": "pnpm i && pnpm load-env:test -- turbo run build:debug",
"build:no-checks": "pnpm i && pnpm load-env:test -- turbo run build:no-checks",
"check": "turbo run check",
"clean": "turbo run clean --no-cache --force && rm -rf .turbo",
"clean:full": "pnpm run clean && rm -rf node_modules && rm -rf sdk/node_modules && rm -rf frontend/node_modules",
Expand Down
1 change: 1 addition & 0 deletions src/typescript/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"_format": "prettier 'src/**/*.ts' 'tests/**/*.ts' '.eslintrc.js'",
"build": "tsc",
"build:debug": "BUILD_DEBUG=true pnpm run build",
"build:no-checks": "tsc --skipLibCheck",
"check": "tsc -p tests/tsconfig.json --noEmit",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"e2e:testnet": "pnpm load-test-env -v NO_TEST_SETUP=true -- pnpm jest tests/e2e/queries/testnet",
Expand Down
17 changes: 10 additions & 7 deletions src/typescript/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@
]
},
"build:debug": {
"dependsOn": [
"build"
],
"outputs": []
"outputs": [
"dist/**",
".next/**"
]
},
"build:no-checks": {
"outputs": [
"dist/**",
".next/**"
]
},
"check": {
"outputs": []
Expand Down Expand Up @@ -47,9 +53,6 @@
"outputs": []
},
"start": {
"dependsOn": [
"build"
],
"outputs": [],
"persistent": true
},
Expand Down

0 comments on commit 192f179

Please sign in to comment.