Skip to content

Commit

Permalink
Switch to devbox
Browse files Browse the repository at this point in the history
Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com>
  • Loading branch information
M4RC3L05 committed Aug 17, 2024
1 parent a7c5dcb commit 316df41
Show file tree
Hide file tree
Showing 8 changed files with 215 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .git-hooks
28 changes: 14 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
---
name: CI
on: [push, pull_request]

on:
- push
- pull_request

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: clone repository
uses: actions/checkout@v4

- name: setup tools
uses: jdx/mise-action@v2
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.9.0
with:
install: true
cache: true
enable-cache: "true"

- name: check lint
run: |
deno lint
yamllint .
deno run -A npm:html-validate .
- name: check deps
run: devbox run -- deno task deps:check

- name: check format
run: |-
deno fmt --check
yamlfmt -dry -lint .
deno run -A npm:prettier -c "./public/**/*.{html,css}"
run: devbox run check:format

- name: check linting
run: devbox run check:lint
3 changes: 1 addition & 2 deletions .htmlvalidate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"extends": ["html-validate:recommended"],
"rules": {
"no-inline-style": "off",
"void-style": ["error", { "style": "selfclosing" }],
"doctype-style": ["error", { "style": "lowercase" }]
"void-style": ["error", { "style": "selfclosing" }]
}
}
3 changes: 0 additions & 3 deletions .tool-versions

This file was deleted.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

Very simple homepage for displaying selfhosted apps.

# Setup
## Setup

```sh
$ git submodule update --init
$ git config --local core.hooksPath ./.git-hooks/hooks
git submodule update --init
```

```sh
git config --local core.hooksPath ./.git-hooks/hooks
```
26 changes: 26 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
"packages": [
"deno@1.45",
"yamlfmt@latest",
"yamllint@latest"
],
"shell": {
"init_hook": [],
"scripts": {
"check:format": [
"set -x",
"deno fmt --check",
"yamlfmt -dry -lint .",
"deno run -A npm:prettier -c \"./public/**/*.{html,css}\""
],
"check:lint": [
"set -x",
"deno lint",
"yamllint .",
"deno run -A npm:html-validate .",
"deno run -A --no-lock npm:markdownlint-cli2 \"**/*.{md,markdown}\" \"#{.git-hooks,.devbox}\""
]
}
}
}
165 changes: 165 additions & 0 deletions devbox.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"lockfile_version": "1",
"packages": {
"deno@1.45": {
"last_modified": "2024-08-05T22:10:44Z",
"resolved": "github:NixOS/nixpkgs/d3f42bd62aa840084563e3b93e4eab73cb0a0448#deno",
"source": "devbox-search",
"version": "1.45.5",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/lhc956f4x75mnqdpcln51qcp733jdffw-deno-1.45.5",
"default": true
}
],
"store_path": "/nix/store/lhc956f4x75mnqdpcln51qcp733jdffw-deno-1.45.5"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/4k8h39z77fij812x98jn6xcjlsdy7i6d-deno-1.45.5",
"default": true
}
],
"store_path": "/nix/store/4k8h39z77fij812x98jn6xcjlsdy7i6d-deno-1.45.5"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/ygwv0kgv9zynv0p4s9ay5r950hv7h77s-deno-1.45.5",
"default": true
}
],
"store_path": "/nix/store/ygwv0kgv9zynv0p4s9ay5r950hv7h77s-deno-1.45.5"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/0wzx6839jkm3s7i4pki338sr1blcz7qs-deno-1.45.5",
"default": true
}
],
"store_path": "/nix/store/0wzx6839jkm3s7i4pki338sr1blcz7qs-deno-1.45.5"
}
}
},
"yamlfmt@latest": {
"last_modified": "2024-07-31T08:48:38Z",
"resolved": "github:NixOS/nixpkgs/c3392ad349a5227f4a3464dce87bcc5046692fce#yamlfmt",
"source": "devbox-search",
"version": "0.13.0",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/v1bg20fhchpca1dh8zwbwkc2cii027ph-yamlfmt-0.13.0",
"default": true
}
],
"store_path": "/nix/store/v1bg20fhchpca1dh8zwbwkc2cii027ph-yamlfmt-0.13.0"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/h763rgl7n9vbvgs94m4pdk559x0r3fl5-yamlfmt-0.13.0",
"default": true
}
],
"store_path": "/nix/store/h763rgl7n9vbvgs94m4pdk559x0r3fl5-yamlfmt-0.13.0"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/ll2ha1ih2s2b2l7f9w52wz7wpm9x50jl-yamlfmt-0.13.0",
"default": true
}
],
"store_path": "/nix/store/ll2ha1ih2s2b2l7f9w52wz7wpm9x50jl-yamlfmt-0.13.0"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/v9wdjmyxc6m9ja9cz8zy13pxdxv26pqb-yamlfmt-0.13.0",
"default": true
}
],
"store_path": "/nix/store/v9wdjmyxc6m9ja9cz8zy13pxdxv26pqb-yamlfmt-0.13.0"
}
}
},
"yamllint@latest": {
"last_modified": "2024-07-31T08:48:38Z",
"resolved": "github:NixOS/nixpkgs/c3392ad349a5227f4a3464dce87bcc5046692fce#yamllint",
"source": "devbox-search",
"version": "1.35.1",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/d4z83ibmf9jyqfn0qj6w8c8x545prd3h-python3.12-yamllint-1.35.1",
"default": true
},
{
"name": "dist",
"path": "/nix/store/gkxlr7xggg2hni37fbqcicmfdn23m8w0-python3.12-yamllint-1.35.1-dist"
}
],
"store_path": "/nix/store/d4z83ibmf9jyqfn0qj6w8c8x545prd3h-python3.12-yamllint-1.35.1"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/4sba4q501m6p1a2312z2rvmnavcr3bq5-python3.12-yamllint-1.35.1",
"default": true
},
{
"name": "dist",
"path": "/nix/store/aw2qn4j1apkqzyk7bgr81n030xbjwybw-python3.12-yamllint-1.35.1-dist"
}
],
"store_path": "/nix/store/4sba4q501m6p1a2312z2rvmnavcr3bq5-python3.12-yamllint-1.35.1"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/8fcfsdn0xvpymsfc49j2kyf6n9pypxcf-python3.12-yamllint-1.35.1",
"default": true
},
{
"name": "dist",
"path": "/nix/store/ms43j0fpks7vc8rkf7plv9czd84d637n-python3.12-yamllint-1.35.1-dist"
}
],
"store_path": "/nix/store/8fcfsdn0xvpymsfc49j2kyf6n9pypxcf-python3.12-yamllint-1.35.1"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/b3j303s50x70y3gl4f1h8613vw0lzi87-python3.12-yamllint-1.35.1",
"default": true
},
{
"name": "dist",
"path": "/nix/store/6bk0qspkrqm2a4pv0h0j4n4ls9hwd9vk-python3.12-yamllint-1.35.1-dist"
}
],
"store_path": "/nix/store/b3j303s50x70y3gl4f1h8613vw0lzi87-python3.12-yamllint-1.35.1"
}
}
}
}
}
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!doctype html>
<!-- prettier-ignore -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down

0 comments on commit 316df41

Please sign in to comment.