-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from edenia/feat/update-dependencies
Update Dependencies
- Loading branch information
Showing
50 changed files
with
1,388 additions
and
2,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
{ | ||
"extends": ["standard", "prettier", "plugin:prettier/recommended"], | ||
"rules": { | ||
"promise/always-return": "off", | ||
"complexity": [ | ||
"error", | ||
{ | ||
"max": 21 | ||
} | ||
] | ||
}, | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
// "root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
"ecmaVersion": 2020 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd hapi | ||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# ---------- Base ---------- | ||
FROM node:16.13.2-slim as base | ||
FROM node:16.20.2 as base | ||
WORKDIR /app | ||
|
||
# ---------- Builder ---------- | ||
FROM base AS builder | ||
COPY package.json yarn.lock ./ | ||
RUN yarn --ignore-optional | ||
COPY ./src ./src | ||
COPY ./ ./ | ||
RUN yarn build | ||
|
||
# ---------- Release ---------- | ||
FROM base AS release | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/src ./src | ||
COPY --from=builder /app/dist ./src | ||
USER node | ||
CMD ["node", "./src/index.js"] | ||
CMD ["node", "./src/index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"watch": ["src"], | ||
"ext": ".ts,.js", | ||
"ignore": [], | ||
"exec": "ts-node ./src/index.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const endpoint = | ||
process.env.HAPI_NETWORK_API || 'https://jungle.edenia.cloud' | ||
export const chainId = | ||
process.env.HAPI_NETWORK_CHAIN_ID || | ||
'73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d' | ||
export const baseAccount = | ||
process.env.HAPI_NETWORK_BASE_ACCOUNT || 'accountname1' | ||
export const baseAccountPassword = process.env.HAPI_NETWORK_BASE_PASSWORD | ||
export const walletUrl = process.env.HAPI_NETWORK_WALLET_URL |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const url = | ||
process.env.HAPI_HASURA_URL || 'http://hasura:8081/v1/graphql' | ||
export const adminSecret = | ||
process.env.HAPI_HASURA_ADMIN_SECRET || 'myadminsecretkey' | ||
|
||
if (!url || !adminSecret) { | ||
throw new Error('Missing required hasura env variables') | ||
} |
Oops, something went wrong.