diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fc3f00e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +name: default +type: docker + +steps: + - name: build + image: node:20-alpine + commands: + - yarn install + - yarn build diff --git a/README.md b/README.md index 1154e54..f28d083 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ The HTTP backend for the Sandkasten website. ## Compiling and executing ```bash -node_modules/.bin/tsc -node src/server.js -``` \ No newline at end of file +npm install +npm run start +``` + +## Bun support + +Pending [#5019](https://github.com/oven-sh/bun/issues/5019) diff --git a/package.json b/package.json index 2161019..b473132 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,14 @@ "name": "labyrinth", "module": "src/server.ts", "type": "module", - "scripts": {}, + "scripts": { + "build": "tsc", + "start": "tsx src/server.ts" + }, "devDependencies": { - "bun-types": "^1.0.3" + "bun-types": "^1.0.22", + "tsx": "^4.7.0", + "typescript": "^5.3.3" }, "peerDependencies": { "typescript": "^5.0.0"