-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
4,555 additions
and
9,820 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,3 +1,2 @@ | ||
.env | ||
wildbeast.sqlite | ||
node_modules/* |
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 +1,2 @@ | ||
node_modules/** | ||
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
extends: [ | ||
'standard-with-typescript' | ||
], | ||
parserOptions: { | ||
project: './tsconfig.json' | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-misused-promises': [ | ||
'error', | ||
{ | ||
checksVoidReturn: false | ||
} | ||
], | ||
'@typescript-eslint/no-non-null-assertion': 'off' | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
* text=auto | ||
*.js text eol=crlf | ||
*.ts text eol=lf |
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,23 @@ | ||
name: Sentry | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
create-sentry-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- run: npm i && npx tsc | ||
- name: Create Sentry release | ||
uses: getsentry/[email protected] | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | ||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | ||
with: | ||
sourcemaps: ./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
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,36 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Program - TSC Compiled", | ||
"program": "${workspaceFolder}/dist/index.js", | ||
"request": "launch", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"runtimeArgs": [ | ||
"-r", | ||
"dotenv/config" | ||
], | ||
"preLaunchTask": "tsc: build - tsconfig.json", | ||
"type": "pwa-node" | ||
}, | ||
{ | ||
"name": "Launch Program - ts-node with Debugger", | ||
"type": "pwa-node", | ||
"request": "launch", | ||
"runtimeArgs": [ | ||
"-r", | ||
"ts-node/register", | ||
"-r", | ||
"dotenv/config" | ||
], | ||
"args": [ | ||
"${workspaceFolder}/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 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,17 +1,14 @@ | ||
FROM node:current | ||
FROM node:lts-alpine | ||
|
||
ARG buildno | ||
ARG commitsha | ||
WORKDIR /usr/wildbeast | ||
|
||
LABEL maintainer="Remco Jongschaap <[email protected]>" \ | ||
repository="https://github.com/TheSharks/WildBeast" | ||
COPY tsconfig.json ./ | ||
COPY package*.json ./ | ||
|
||
RUN mkdir /opt/wildbeast | ||
# Copy files and install modules | ||
COPY . /opt/wildbeast | ||
WORKDIR /opt/wildbeast | ||
RUN npm ci --production | ||
# Install optional native modules | ||
# TODO: swap out UWS whenever a better module is available | ||
RUN npm i zlib-sync [email protected] https://github.com/discordapp/erlpack.git bufferutil pg | ||
CMD ["node", "index.js"] | ||
COPY src ./src | ||
|
||
RUN npm install | ||
RUN npm run compile | ||
RUN npm prune --production | ||
|
||
CMD ["npm", "start"] |
Oops, something went wrong.