first npm publish

This commit is contained in:
Rik Berkelder 2021-01-23 19:50:22 +01:00
parent 0566ccc7f0
commit b49f422835
3 changed files with 46 additions and 39 deletions

View file

@ -28,8 +28,14 @@ pages:
paths: paths:
- public - public
clean: publish:
stage: clean stage: deploy
only:
- master
script: script:
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'
- npm publish
after_script:
- docker rm -v $(docker container ls -q --all --filter=name="runner-*" --filter=status=exited) || true - docker rm -v $(docker container ls -q --all --filter=name="runner-*" --filter=status=exited) || true
- docker rmi $(docker images -f"dangling=true" -q) || true - docker rmi $(docker images -f"dangling=true" -q) || true

View file

@ -1,6 +1,8 @@
# ts-osc # ts-osc
An easy to use, Typescript-Native OSC client. An easy to use, Typescript-Native OSC client.
API Docs [here](https://riksolo.pages.riksolo.com/ts-osc/)
## Usage example ## Usage example
```javascript ```javascript
import {OSCClient, OSCType} from 'ts-osc'; import {OSCClient, OSCType} from 'ts-osc';

View file

@ -1,38 +1,37 @@
{ {
"name": "ts-osc", "name": "ts-osc",
"version": "1.0.0", "version": "0.1.0",
"description": "Fully TypeScript-native OSC Client based on osc-min", "description": "Fully TypeScript-native OSC Client based on osc-min",
"main": "./lib/index.js", "main": "./lib/index.js",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"compile": "tsc", "compile": "tsc",
"watch": "tsc --watch", "watch": "tsc --watch",
"docs": "typedoc --out docs ./src/index.ts", "docs": "typedoc --out docs ./src/index.ts",
"nojekyll": "touch ./docs/.nojekyll", "nojekyll": "touch ./docs/.nojekyll",
"clean": "rimraf lib", "clean": "rimraf lib",
"build": "run-s clean compile docs nojekyll" "build": "run-s clean compile docs nojekyll"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "ssh://git@gitlab.riksolo.com:2224/riksolo/ts-osc.git" "url": "ssh://git@gitlab.riksolo.com:2224/riksolo/ts-osc.git"
}, },
"keywords": [ "keywords": [
"osc", "osc",
"open", "open sound control",
"sound", "udp"
"control" ],
], "author": "Rik Berkelder <mail@riksolo.com>",
"author": "Rik Berkelder <mail@riksolo.com>", "license": "MIT",
"license": "MIT", "dependencies": {
"dependencies": { "osc-min": "^1.1.2"
"osc-min": "^1.1.2" },
}, "devDependencies": {
"devDependencies": { "@types/node": "^14.14.22",
"@types/node": "^14.14.22", "npm-run-all": "^4.1.5",
"npm-run-all": "^4.1.5", "rimraf": "^3.0.2",
"rimraf": "^3.0.2", "typedoc": "^0.20.16",
"typedoc": "^0.20.16", "typescript": "^4.1.3"
"typescript": "^4.1.3" }
}
} }