Project setup #1

Merged
Thilawyn merged 2 commits from setup into master 2023-12-09 02:22:39 +01:00
3 changed files with 95 additions and 1 deletions
Showing only changes of commit d7249725e4 - Show all commits

93
.drone.jsonnet Normal file
View File

@@ -0,0 +1,93 @@
local bun_image = "oven/bun:1";
local fetch_step = {
name: "fetch",
image: "alpine/git",
commands: ["git fetch --tags"],
};
local install_step = {
name: "install",
image: bun_image,
commands: ["bun install --frozen-lockfile"],
};
local lint_step = {
name: "lint",
image: bun_image,
commands: ["bun lint:tsc"],
};
local generate_docker_tags_step = {
name: "generate-docker-tags",
image: "git.jvalver.de/thilawyn/drone-better-docker-autotag",
};
[
// Lint the whole project when not in master, not in a PR nor on a tag
{
kind: "pipeline",
type: "docker",
name: "lint",
trigger: {
ref: {
exclude: [
"refs/heads/master",
"refs/pull/**",
"refs/tags/**",
]
}
},
steps: [
install_step,
lint_step,
],
},
// Build the server and legacy API docker images without publishing them for pull requests
// {
// kind: "pipeline",
// type: "docker",
// name: "build-docker",
// trigger: {
// ref: {
// include: ["refs/pull/**"]
// }
// },
// steps: [
// fetch_step,
// generate_docker_tags_step,
// build_website_docker_step(false),
// build_legacy_api_docker_step(false),
// ],
// },
// Build the server and legacy API docker images and publish them for master and tags
// {
// kind: "pipeline",
// type: "docker",
// name: "build-publish-docker",
// trigger: {
// ref: {
// include: [
// "refs/heads/master",
// "refs/tags/**",
// ]
// }
// },
// steps: [
// fetch_step,
// generate_docker_tags_step,
// build_website_docker_step(true),
// build_legacy_api_docker_step(true),
// ],
// },
]

BIN
bun.lockb

Binary file not shown.

View File

@@ -18,7 +18,8 @@
"build": "rollup -c",
"lint:tsc": "tsc --noEmit",
"clean:cache": "rm -f tsconfig.tsbuildinfo",
"clean:dist": "rm -rf dist"
"clean:dist": "rm -rf dist",
"clean:node": "rm -rf node_modules"
},
"dependencies": {
"type-fest": "^4.8.3"