瀏覽代碼

automate the shit out of it

master
Daniel Hübleitner 5 年之前
父節點
當前提交
6f51ee9813
共有 4 個檔案被更改,包括 26 行新增3 行删除
  1. 22
    0
      .drone.yml
  2. 2
    3
      .gitignore
  3. 1
    0
      src/Frontend.ts
  4. 1
    0
      test/index.html

+ 22
- 0
.drone.yml 查看文件

1
+kind: pipeline
2
+name: default
3
+
4
+steps:
5
+- name: npm install
6
+  image: node:12
7
+  commands:
8
+  - npm install
9
+
10
+- name: npm run build
11
+  image: node:12
12
+  commands:
13
+  - npm run build
14
+
15
+- name: npm publish
16
+  image: plugins/npm
17
+  settings:
18
+    username: frontwork
19
+    password:
20
+      from_secret: npm_password
21
+    email: frontwork.me@gmail.com
22
+  

+ 2
- 3
.gitignore 查看文件

1
 node_modules
1
 node_modules
2
+js
2
 
3
 
3
 src/**/*.js
4
 src/**/*.js
4
 src/**/*.d.ts
5
 src/**/*.d.ts
7
 test/**/*.d.ts
8
 test/**/*.d.ts
8
 
9
 
9
 *.d.ts
10
 *.d.ts
10
-*.js
11
-
12
-lib
11
+*.js

+ 1
- 0
src/Frontend.ts 查看文件

14
 
14
 
15
     private socket: I.Socket
15
     private socket: I.Socket
16
     constructor(public port:number, private server: string, private tls: boolean = false){
16
     constructor(public port:number, private server: string, private tls: boolean = false){
17
+        Object.defineProperty(this, 'socket', {value: undefined, writable: true})
17
     }
18
     }
18
 
19
 
19
 
20
 

+ 1
- 0
test/index.html 查看文件

1
+<script src="../js/Frontend.min.js"></script>

Loading…
取消
儲存