-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to swc build, fix eslint config, swiitch to using account-gql …
…server
- Loading branch information
Showing
12 changed files
with
760 additions
and
2,676 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
module.exports = { | ||
extends: '@codeday', | ||
|
||
parserOptions: | ||
{ | ||
ecmaVersion: 2020, | ||
}, | ||
rules: { | ||
'import/no-missing-require': ['off'], | ||
'import/no-unresolved': ['off'], | ||
'require-jsdoc': ['off'], | ||
'import/prefer-default-export': ['off'], | ||
} | ||
}, | ||
}; |
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 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/swcrc", | ||
"module": { | ||
"type": "commonjs" | ||
} | ||
} |
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,15 +1,22 @@ | ||
FROM node:13-alpine | ||
FROM node:16-alpine as builder | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
RUN mkdir /build | ||
WORKDIR /build | ||
|
||
COPY package.json /app | ||
COPY yarn.lock /app | ||
COPY package.json /build | ||
COPY yarn.lock /build | ||
RUN yarn install --frozen-lockfile | ||
|
||
COPY . /app | ||
RUN rm /app/node_modules/@graphql-tools/delegate/index.cjs.js | ||
COPY index.cjs.js /app/node_modules/@graphql-tools/delegate/index.cjs.js | ||
# RUN rm /app/node_modules/@graphql-tools/delegate/index.cjs.js | ||
# COPY index.cjs.js /app/node_modules/@graphql-tools/delegate/index.cjs.js | ||
|
||
RUN yarn run build | ||
COPY dist/ /build/dist | ||
|
||
FROM node:16-alpine | ||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY --from=builder /build/ /app/ | ||
|
||
CMD yarn run start |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/* eslint-disable global-require */ | ||
require('@babel/polyfill'); | ||
require('dotenv').config(); | ||
require('./server.js').default(); | ||
import { config } from "dotenv"; | ||
config(); | ||
|
||
import server from "./server.js"; | ||
server(); |
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
Oops, something went wrong.