소스 검색

GitHub actions and some cleanup (#158)

master
Lipis 4 년 전
부모
커밋
a0d2a5b82a
No account linked to committer's email address
3개의 변경된 파일45개의 추가작업 그리고 72개의 파일을 삭제
  1. 7
    9
      .github/workflows/lint.yml
  2. 22
    0
      .github/workflows/test.yml
  3. 16
    63
      package.json

+ 7
- 9
.github/workflows/lint.yml 파일 보기

2
 
2
 
3
 on:
3
 on:
4
   push:
4
   push:
5
-    branches:
6
-      - master
7
-  pull_request:
8
 
5
 
9
 jobs:
6
 jobs:
10
   lint:
7
   lint:
13
     steps:
10
     steps:
14
       - uses: actions/checkout@v1
11
       - uses: actions/checkout@v1
15
 
12
 
16
-      - name: Setup Node.js 12.x
13
+      - name: Setup Node.js 14.x
17
         uses: actions/setup-node@v1
14
         uses: actions/setup-node@v1
18
         with:
15
         with:
19
-          node-version: 12.x
16
+          node-version: 14.x
20
 
17
 
21
-      - name: Install and lint
22
-        run: |
23
-          yarn
24
-          yarn lint
18
+      - name: Install dependencies
19
+        run: yarn
20
+
21
+      - name: Lint
22
+        run: yarn lint

+ 22
- 0
.github/workflows/test.yml 파일 보기

1
+name: Test
2
+
3
+on:
4
+  push:
5
+
6
+jobs:
7
+  test:
8
+    runs-on: ubuntu-latest
9
+
10
+    steps:
11
+      - uses: actions/checkout@v1
12
+
13
+      - name: Setup Node.js 14.x
14
+        uses: actions/setup-node@v1
15
+        with:
16
+          node-version: 14.x
17
+
18
+      - name: Install dependencies
19
+        run: yarn
20
+
21
+      - name: Test
22
+        run: yarn test

+ 16
- 63
package.json 파일 보기

1
 {
1
 {
2
-  "name": "excalidraw-room",
3
-  "version": "1.0.0",
4
-  "description": "Excalidraw collaboration server",
5
-  "main": "index.js",
2
+  "name": "excalidraw-portal",
3
+  "dependencies": {
4
+    "@types/debug": "4.1.5",
5
+    "@types/express": "4.17.11",
6
+    "@types/node": "14.14.21",
7
+    "@types/socket.io": "2.1.4",
8
+    "debug": "4.3.1",
9
+    "express": "4.17.1",
10
+    "prettier": "2.2.1",
11
+    "socket.io": "2.3.0",
12
+    "typescript": "4.1.3"
13
+  },
14
+  "license": "MIT",
15
+  "main": "dist/index.js",
6
   "scripts": {
16
   "scripts": {
7
     "build": "tsc",
17
     "build": "tsc",
8
-    "fix": "yarn prettier --write",
18
+    "format": "yarn prettier --write",
9
     "lint": "yarn prettier --list-different",
19
     "lint": "yarn prettier --list-different",
10
     "prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"",
20
     "prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"",
11
     "start": "node dist/index.js",
21
     "start": "node dist/index.js",
12
     "test": "yarn lint"
22
     "test": "yarn lint"
13
   },
23
   },
14
-  "repository": {
15
-    "type": "git",
16
-    "url": "git+https://github.com/excalidraw/excalidraw-room.git"
17
-  },
18
-  "keywords": [],
19
-  "author": "",
20
-  "license": "MIT",
21
-  "bugs": {
22
-    "url": "https://github.com/excalidraw/excalidraw-room/issues"
23
-  },
24
-  "homepage": "https://github.com/excalidraw/excalidraw-room#readme",
25
-  "dependencies": {
26
-    "debug": "4.3.1",
27
-    "eslint": "7.3.1",
28
-    "eslint-config-prettier": "7.0.0",
29
-    "eslint-plugin-prettier": "3.3.1",
30
-    "express": "4.17.1",
31
-    "prettier": "2.2.1",
32
-    "socket.io": "2.3.0"
33
-  },
34
-  "devDependencies": {
35
-    "@types/socket.io": "2.1.4",
36
-    "@types/debug": "4.1.5",
37
-    "@types/express": "4.17.11",
38
-    "@types/node": "14.14.12",
39
-    "typescript": "4.1.3"
40
-  },
41
-  "eslintConfig": {
42
-    "extends": [
43
-      "prettier"
44
-    ],
45
-    "plugins": [
46
-      "prettier"
47
-    ],
48
-    "rules": {
49
-      "curly": "warn",
50
-      "no-console": [
51
-        "warn",
52
-        {
53
-          "allow": [
54
-            "warn",
55
-            "error",
56
-            "info"
57
-          ]
58
-        }
59
-      ],
60
-      "no-else-return": "warn",
61
-      "no-useless-return": "warn",
62
-      "prefer-const": [
63
-        "warn",
64
-        {
65
-          "destructuring": "all"
66
-        }
67
-      ],
68
-      "prefer-template": "warn",
69
-      "prettier/prettier": "warn"
70
-    }
71
-  }
24
+  "version": "1.0.0"
72
 }
25
 }

Loading…
취소
저장