Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.env
.editorconfig
.idea
coverage*
53 changes: 0 additions & 53 deletions .eslintrc.cjs

This file was deleted.

21 changes: 7 additions & 14 deletions .github/workflows/merge_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,19 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
bun-version: latest
- name: Install dependencies
run: pnpm install
run: bun install
- name: Lint
run: pnpm run lint
run: bun run lint
- name: Build
run: pnpm run build
- name: Preview Bump version
run: bun run build
- name: Preview tag version
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
Expand Down
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

12 changes: 4 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"cSpell.words": [
"aram",
"astro",
"astrojs",
"commitlint",
"darkmode",
"sonarjs"
]
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit",
"source.fixAll.biome": "explicit"
}
}
27 changes: 20 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
FROM node:21-alpine AS builder
FROM oven/bun:1 AS base
WORKDIR /usr/src/app

ENV CI true
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lock /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile --ignore-scripts

WORKDIR /app
COPY . ./
RUN mkdir -p /temp/prod
COPY package.json bun.lock /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --ignore-scripts --production

RUN corepack pnpm install && corepack pnpm run build
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY . .

FROM nginx:alpine-slim
ENV NODE_ENV=production
RUN bun run build

COPY --from=builder /app/dist/ /usr/share/nginx/html
FROM oven/bun:1-alpine AS release
COPY --from=prerelease /usr/src/app/dist/ .

USER bun
EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "index.html" ]
6 changes: 3 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {defineConfig} from 'astro/config';
import solidJs from '@astrojs/solid-js';
import pandacss from '@pandacss/astro';
import solidJs from "@astrojs/solid-js";
import pandacss from "@pandacss/astro";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
Expand Down
52 changes: 52 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": false,
"defaultBranch": "main"
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"overrides": [
{
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
}
]
}
Loading