Compare commits
36 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
706415a335 | ||
|
ef83faede4 | ||
|
bdbd692075 | ||
|
c7bf3efaeb | ||
|
d8c137f273 | ||
|
cd07b6ee24 | ||
|
38e42c630c | ||
|
b29b5c4044 | ||
|
774cc761b4 | ||
|
99240c35a8 | ||
|
6ea0e43d3e | ||
|
8999461940 | ||
|
c33c634346 | ||
|
abd78ed398 | ||
|
175b23c452 | ||
|
c6890d1be4 | ||
|
ad0e96ec95 | ||
|
2324199591 | ||
|
feef876308 | ||
|
1a5335ef17 | ||
|
47f6e7e961 | ||
|
caeac9cc3d | ||
|
9b5351f9d6 | ||
|
52dc50781f | ||
|
c734c23543 | ||
|
1aab49f8ca | ||
|
fdae5f7a90 | ||
|
f96507bc28 | ||
|
ca85f36373 | ||
|
6c46e19943 | ||
|
d8351f1ee3 | ||
|
95f3ada675 | ||
|
eabeb2c1a1 | ||
|
9e268b9e03 | ||
|
254b8dabec | ||
|
eb2497ffde |
6
.gcloudignore
Normal file
6
.gcloudignore
Normal file
@ -0,0 +1,6 @@
|
||||
.gcloudignore
|
||||
.git
|
||||
.gitignore
|
||||
.github/
|
||||
node_modules/
|
||||
src/
|
13
Dockerfile
13
Dockerfile
@ -1,13 +0,0 @@
|
||||
FROM node:12-alpine
|
||||
|
||||
WORKDIR /excalidraw-room
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
RUN yarn build
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["yarn", "start"]
|
12
app.yaml
Normal file
12
app.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
runtime: nodejs
|
||||
env: flex
|
||||
|
||||
# https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
|
||||
manual_scaling:
|
||||
instances: 1
|
||||
resources:
|
||||
cpu: 1
|
||||
memory_gb: 0.5
|
||||
disk_size_gb: 10
|
||||
network:
|
||||
session_affinity: true
|
11
package.json
11
package.json
@ -1,5 +1,10 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"debug": "4.3.1",
|
||||
"express": "4.17.1",
|
||||
"socket.io": "2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@excalidraw/eslint-config": "1.0.0",
|
||||
"@excalidraw/prettier-config": "1.0.2",
|
||||
"@types/debug": "4.1.5",
|
||||
@ -8,13 +13,10 @@
|
||||
"@types/socket.io": "2.1.4",
|
||||
"@typescript-eslint/eslint-plugin": "4.16.1",
|
||||
"@typescript-eslint/parser": "4.16.1",
|
||||
"debug": "4.3.1",
|
||||
"eslint": "7.21.0",
|
||||
"eslint-config-prettier": "8.1.0",
|
||||
"eslint-plugin-prettier": "3.3.1",
|
||||
"express": "4.17.1",
|
||||
"prettier": "2.2.1",
|
||||
"socket.io": "2.3.0",
|
||||
"ts-node-dev": "1.1.6",
|
||||
"typescript": "4.2.2"
|
||||
},
|
||||
@ -24,12 +26,13 @@
|
||||
"prettier": "@excalidraw/prettier-config",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"deploy": "yarn build && gcloud app deploy --project=excalidraw-portal",
|
||||
"fix:code": "yarn test:code --fix",
|
||||
"fix:other": "yarn prettier --write",
|
||||
"fix": "yarn fix:other && yarn fix:code",
|
||||
"prettier": "prettier . --ignore-path=.gitignore",
|
||||
"start": "node dist/index.js",
|
||||
"start:dev": "ts-node-dev --respawn --transpile-only src/index.ts",
|
||||
"start": "node dist/index.js",
|
||||
"test:code": "eslint --ext .ts .",
|
||||
"test:other": "yarn prettier --list-different",
|
||||
"test": "yarn test:other && yarn test:code"
|
||||
|
Loading…
x
Reference in New Issue
Block a user