Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch back to protobuf.js; add and integrate CompactPlayerFrames support #1

Merged
merged 5 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/gen
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
/coverage
/.env
/.vscode/launch.json
/src/gen
ndjson
playermove.ndjson
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@
"prettier.semi": true,
"prettier.printWidth": 120,
"prettier.trailingComma": "all",
"prettier.tabWidth": 2
"prettier.tabWidth": 2,
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"dist/**": true,
"coverage/**": true,
}
}
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ FROM node:21-slim AS build
WORKDIR /src
COPY package.json package-lock.json ./
RUN npm install
COPY buf.gen.yaml .
COPY proto/ ./proto/
RUN npx buf generate proto
COPY tsconfig.json .
COPY src/ ./src/

COPY tsconfig.json jest.config.js ./
# run tests
COPY jest.config.js .
RUN npm test

# build
Expand Down
5 changes: 0 additions & 5 deletions buf.gen.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
// preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'\\.js$': 'babel-jest',
'\\.ts$': 'ts-jest',
},
};
Loading