Browse Source

automate the shit out of it

master
Daniel Hübleitner 5 years ago
parent
commit
6f51ee9813
4 changed files with 26 additions and 3 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

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

Loading…
Cancel
Save