From 6f51ee98135751f318a9c84d39199b255c5094ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=BCbleitner?= Date: Sat, 21 Sep 2019 00:10:31 +0200 Subject: [PATCH] automate the shit out of it --- .drone.yml | 22 ++++++++++++++++++++++ .gitignore | 5 ++--- src/Frontend.ts | 1 + test/index.html | 1 + 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .drone.yml create mode 100644 test/index.html diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5f7726e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +kind: pipeline +name: default + +steps: +- name: npm install + image: node:12 + commands: + - npm install + +- name: npm run build + image: node:12 + commands: + - npm run build + +- name: npm publish + image: plugins/npm + settings: + username: frontwork + password: + from_secret: npm_password + email: frontwork.me@gmail.com + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5ed8763..35162d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules +js src/**/*.js src/**/*.d.ts @@ -7,6 +8,4 @@ test/**/*.js test/**/*.d.ts *.d.ts -*.js - -lib \ No newline at end of file +*.js \ No newline at end of file diff --git a/src/Frontend.ts b/src/Frontend.ts index 86b1bca..9a1d0ff 100644 --- a/src/Frontend.ts +++ b/src/Frontend.ts @@ -14,6 +14,7 @@ export class RPCSocket implements I.Socket{ private socket: I.Socket constructor(public port:number, private server: string, private tls: boolean = false){ + Object.defineProperty(this, 'socket', {value: undefined, writable: true}) } diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..4159903 --- /dev/null +++ b/test/index.html @@ -0,0 +1 @@ +