Skip to content

Commit 133d472

Browse files
authored
Merge pull request #170 from gnosischain/fix/docker-build-sg
fix: delete SG codegen when build app
2 parents 9aee5f8 + a385cb3 commit 133d472

42 files changed

Lines changed: 30187 additions & 16 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
*.pem
2222
tsconfig.tsbuildinfo
2323
.eslintcache
24-
types/generated/
2524

2625
# debug
2726
npm-debug.log*
@@ -38,8 +37,5 @@ yarn-error.log*
3837
# vercel
3938
.vercel
4039

41-
#types
42-
/types/typechain
43-
4440
#IDE files
4541
/.idea

app/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ COPY /src ./src
3232
# Cleaning the cache of yarn
3333
RUN yarn cache clean
3434

35-
RUN yarn install
36-
RUN yarn postinstall
35+
RUN yarn install
3736

3837
FROM base AS builder
3938
WORKDIR /app
4039
COPY --from=deps /app/node_modules ./node_modules
4140
COPY --from=deps /app/src ./src
42-
COPY --from=deps /app/types ./types
4341
COPY . .
4442

4543
ENV NEXT_TELEMETRY_DISABLED 1

app/docker-compose.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.8'
21
services:
32
web:
43
build:
@@ -8,6 +7,6 @@ services:
87
- .:/app
98
command: npm run dev
109
ports:
11-
- "3000:3000"
10+
- '3000:3000'
1211
environment:
13-
NODE_ENV: development
12+
NODE_ENV: development

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"start": "next start",
1616
"typechain": "typechain --target=ethers-v5 ./src/abis/**/*.json --out-dir ./types/typechain/",
1717
"subgraph-codegen": "graphql-codegen --config ./subgraph-config.js",
18-
"postinstall": "yarn typechain && yarn subgraph-codegen"
18+
"postinstall-locally": "yarn typechain && yarn subgraph-codegen"
1919
},
2020
"dependencies": {
2121
"@babel/traverse": "^7.23.2",

app/src/pagePartials/bridge/bridgeForm/button/TriggerBridgeButton.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ export const TriggerBridgeButton: React.FC<TriggerBridgeButtonProps> = ({
4545
token,
4646
})
4747

48-
console.log('transactionData', transactionData)
49-
5048
if (!transactionData) throw new Error('Transaction data is not available')
5149

5250
const { isNativeBridge } = getBridgeCommonInfo({

app/src/pagePartials/bridge/bridgeForm/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,6 @@ const Main = () => {
245245
? true
246246
: false
247247

248-
// console.log('formState', formState)
249-
// console.log('tokenOut', tokenOut)
250-
251248
return (
252249
<Wrapper>
253250
<FormWrapper>

app/types/generated/subgraph.ts

Lines changed: 1588 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)