Skip to content

Commit 24dceef

Browse files
committed
feat: initial project
1 parent d0bd5ce commit 24dceef

19 files changed

+1087
-2
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!bin

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.github/renovate.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>containerbase/.github",
5+
"github>containerbase/.github//merge-queue.json"
6+
],
7+
"packageRules": [
8+
{
9+
"description": "Enable minor updates on renovate rebuild trigger file",
10+
"matchFiles": ["renovate.Dockerfile"],
11+
"matchUpdateTypes": ["minor"],
12+
"enabled": true
13+
},
14+
{
15+
"description": "extract wally version",
16+
"matchPackageNames": ["UpliftGames/wally"],
17+
"matchDatasources": ["github-releases"],
18+
"extractVersion": "v(?<version>.+)"
19+
}
20+
]
21+
}

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
merge_group:
11+
12+
schedule:
13+
- cron: '0 1 * * *'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
17+
cancel-in-progress: true
18+
19+
env:
20+
HUSKY: 0
21+
22+
jobs:
23+
lint:
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 10
26+
steps:
27+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
28+
29+
- name: ⚙️ Setup pnpm
30+
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
31+
with:
32+
standalone: true
33+
34+
- name: ⚙️ Setup Node.js
35+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
36+
with:
37+
node-version-file: .node-version
38+
cache: 'pnpm'
39+
40+
- run: pnpm install
41+
- run: pnpm prettier
42+
43+
build:
44+
needs:
45+
- lint
46+
runs-on: ubuntu-latest
47+
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
distro:
52+
- focal
53+
# - jammy
54+
arch:
55+
- x86_64
56+
# - aarch64
57+
58+
env:
59+
DISTRO: ${{ matrix.distro }} # build target, name required by binary-builder
60+
ARCH: ${{ matrix.arch }} # build target, name required by binary-builder
61+
62+
steps:
63+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
64+
65+
- name: binary-builder
66+
uses: containerbase/internal-tools@c30fd9e43f9adb66114fcf23bd74bf4179b158a1 # v3.4.3
67+
with:
68+
command: binary-builder
69+
dry-run: ${{github.ref != 'refs/heads/main'}}
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
last-only: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/node_modules/
2+
/.pnpm-store/
3+
4+
/.cache/

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
lint-staged

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*": "prettier --ignore-unknown --write"
3+
}

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.16.0

.npmrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
save-exact = true
2+
save-prefix =
3+
4+
# pnpm run settings
5+
# https://pnpm.io/cli/run
6+
shell-emulator = true

.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules/
2+
/coverage/
3+
/dist/
4+
/bin/
5+
/tmp/
6+
/html/
7+
/.cache/
8+
9+
10+
# pnpm
11+
pnpm-lock.yaml
12+
/.pnpm-store

0 commit comments

Comments
 (0)