浏览代码

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 查看文件

@@ -0,0 +1,22 @@
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,4 +1,5 @@
1 1
 node_modules
2
+js
2 3
 
3 4
 src/**/*.js
4 5
 src/**/*.d.ts
@@ -7,6 +8,4 @@ test/**/*.js
7 8
 test/**/*.d.ts
8 9
 
9 10
 *.d.ts
10
-*.js
11
-
12
-lib
11
+*.js

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

@@ -14,6 +14,7 @@ export class RPCSocket implements I.Socket{
14 14
 
15 15
     private socket: I.Socket
16 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 查看文件

@@ -0,0 +1 @@
1
+<script src="../js/Frontend.min.js"></script>

正在加载...
取消
保存