Browse Source

Revert to 35314725, a version that works

master
Christopher Chedeau 4 years ago
parent
commit
a0b69ee474
4 changed files with 56 additions and 32 deletions
  1. 20
    0
      .github/workflows/publish-docker.yml
  2. 13
    0
      Dockerfile
  3. 4
    5
      package.json
  4. 19
    27
      yarn.lock

+ 20
- 0
.github/workflows/publish-docker.yml View File

@@ -0,0 +1,20 @@
1
+name: Publish Docker
2
+
3
+on:
4
+  push:
5
+    branches:
6
+      - master
7
+
8
+jobs:
9
+  publish-docker:
10
+    runs-on: ubuntu-latest
11
+
12
+    steps:
13
+      - uses: actions/checkout@v2
14
+      - uses: docker/build-push-action@v1
15
+        with:
16
+          username: ${{ secrets.DOCKER_USERNAME }}
17
+          password: ${{ secrets.DOCKER_PASSWORD }}
18
+          repository: excalidraw/excalidraw-room
19
+          tag_with_ref: true
20
+          tag_with_sha: true

+ 13
- 0
Dockerfile View File

@@ -0,0 +1,13 @@
1
+FROM node:12-alpine
2
+
3
+WORKDIR /excalidraw-room
4
+
5
+COPY package.json yarn.lock ./
6
+RUN yarn
7
+
8
+COPY tsconfig.json ./
9
+COPY src ./src
10
+RUN yarn build
11
+
12
+EXPOSE 80
13
+CMD ["yarn", "start"]

+ 4
- 5
package.json View File

@@ -7,7 +7,6 @@
7 7
     "build": "tsc",
8 8
     "fix": "yarn prettier --write",
9 9
     "lint": "yarn prettier --list-different",
10
-    "postinstall": "npm run build",
11 10
     "prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"",
12 11
     "start": "node dist/index.js",
13 12
     "test": "yarn lint"
@@ -26,18 +25,18 @@
26 25
   "dependencies": {
27 26
     "debug": "4.1.1",
28 27
     "eslint": "7.3.1",
29
-    "eslint-config-prettier": "6.11.0",
28
+    "eslint-config-prettier": "6.10.1",
30 29
     "eslint-plugin-prettier": "3.1.4",
31 30
     "express": "4.17.1",
32 31
     "prettier": "2.0.5",
33 32
     "socket.io": "2.3.0"
34 33
   },
35 34
   "devDependencies": {
36
-    "@types/socket.io": "2.1.11",
35
+    "@types/socket.io": "2.1.4",
37 36
     "@types/debug": "4.1.5",
38
-    "@types/express": "4.17.7",
37
+    "@types/express": "4.17.6",
39 38
     "@types/node": "13.9.8",
40
-    "typescript": "4.0.2"
39
+    "typescript": "3.9.5"
41 40
   },
42 41
   "eslintConfig": {
43 42
     "extends": [

+ 19
- 27
yarn.lock View File

@@ -43,13 +43,6 @@
43 43
   resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd"
44 44
   integrity sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==
45 45
 
46
-"@types/engine.io@*":
47
-  version "3.1.4"
48
-  resolved "https://registry.yarnpkg.com/@types/engine.io/-/engine.io-3.1.4.tgz#3d9472711d179daa7c95c051e50ad411e18a9bdc"
49
-  integrity sha512-98rXVukLD6/ozrQ2O80NAlWDGA4INg+tqsEReWJldqyi2fulC9V7Use/n28SWgROXKm6003ycWV4gZHoF8GA6w==
50
-  dependencies:
51
-    "@types/node" "*"
52
-
53 46
 "@types/express-serve-static-core@*":
54 47
   version "4.17.2"
55 48
   resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.2.tgz#f6f41fa35d42e79dbf6610eccbb2637e6008a0cf"
@@ -58,10 +51,10 @@
58 51
     "@types/node" "*"
59 52
     "@types/range-parser" "*"
60 53
 
61
-"@types/express@4.17.7":
62
-  version "4.17.7"
63
-  resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.7.tgz#42045be6475636d9801369cd4418ef65cdb0dd59"
64
-  integrity sha512-dCOT5lcmV/uC2J9k0rPafATeeyz+99xTt54ReX11/LObZgfzJqZNcW27zGhYyX+9iSEGXGt5qLPwRSvBZcLvtQ==
54
+"@types/express@4.17.6":
55
+  version "4.17.6"
56
+  resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.6.tgz#6bce49e49570507b86ea1b07b806f04697fac45e"
57
+  integrity sha512-n/mr9tZI83kd4azlPG5y997C/M4DNABK9yErhFM6hKdym4kkmd9j0vtsJyjFIwfRBxtrxZtAfGZCNRIBMFLK5w==
65 58
   dependencies:
66 59
     "@types/body-parser" "*"
67 60
     "@types/express-serve-static-core" "*"
@@ -96,12 +89,11 @@
96 89
     "@types/express-serve-static-core" "*"
97 90
     "@types/mime" "*"
98 91
 
99
-"@types/socket.io@2.1.11":
100
-  version "2.1.11"
101
-  resolved "https://registry.yarnpkg.com/@types/socket.io/-/socket.io-2.1.11.tgz#e0d6759880e5f9818d5297a3328b36641bae996b"
102
-  integrity sha512-bVprmqPhJMLb9ZCm8g0Xy8kwBFRbnanOWSxzWkDkkIwxTvud5tKMfAJymXX6LQbizUKCS1yima7JM4BeLqjNqA==
92
+"@types/socket.io@2.1.4":
93
+  version "2.1.4"
94
+  resolved "https://registry.yarnpkg.com/@types/socket.io/-/socket.io-2.1.4.tgz#674e7bc193c5ccdadd4433f79f3660d31759e9ac"
95
+  integrity sha512-cI98INy7tYnweTsUlp8ocveVdAxENUThO0JsLSCs51cjOP2yV5Mqo5QszMDPckyRRA+PO6+wBgKvGvHUCc23TQ==
103 96
   dependencies:
104
-    "@types/engine.io" "*"
105 97
     "@types/node" "*"
106 98
 
107 99
 accepts@~1.3.4, accepts@~1.3.7:
@@ -477,10 +469,10 @@ escape-string-regexp@^1.0.5:
477 469
   resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
478 470
   integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
479 471
 
480
-eslint-config-prettier@6.11.0:
481
-  version "6.11.0"
482
-  resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.11.0.tgz#f6d2238c1290d01c859a8b5c1f7d352a0b0da8b1"
483
-  integrity sha512-oB8cpLWSAjOVFEJhhyMZh6NOEOtBVziaqdDQ86+qhDHFbZXoRTM7pNSvFRfW/W/L/LrQ38C99J5CGuRBBzBsdA==
472
+eslint-config-prettier@6.10.1:
473
+  version "6.10.1"
474
+  resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.10.1.tgz#129ef9ec575d5ddc0e269667bf09defcd898642a"
475
+  integrity sha512-svTy6zh1ecQojvpbJSgH3aei/Rt7C6i090l5f2WQ4aB05lYHeZIR1qL4wZyyILTbtmnbHP5Yn8MrsOJMGa8RkQ==
484 476
   dependencies:
485 477
     get-stdin "^6.0.0"
486 478
 
@@ -898,9 +890,9 @@ levn@^0.4.1:
898 890
     type-check "~0.4.0"
899 891
 
900 892
 lodash@^4.17.14:
901
-  version "4.17.20"
902
-  resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
903
-  integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
893
+  version "4.17.15"
894
+  resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
895
+  integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
904 896
 
905 897
 media-typer@0.3.0:
906 898
   version "0.3.0"
@@ -1344,10 +1336,10 @@ type-is@~1.6.17, type-is@~1.6.18:
1344 1336
     media-typer "0.3.0"
1345 1337
     mime-types "~2.1.24"
1346 1338
 
1347
-typescript@4.0.2:
1348
-  version "4.0.2"
1349
-  resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
1350
-  integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==
1339
+typescript@3.9.5:
1340
+  version "3.9.5"
1341
+  resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz#586f0dba300cde8be52dd1ac4f7e1009c1b13f36"
1342
+  integrity sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==
1351 1343
 
1352 1344
 unpipe@1.0.0, unpipe@~1.0.0:
1353 1345
   version "1.0.0"

Loading…
Cancel
Save