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
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Fyra Devdocs",
"image": "ghcr.io/ultramarine-linux/ultramarine:43",
"onCreateCommand": "sudo dnf install -y bun nodejs",
"postCreateCommand": "bun install",
"onCreateCommand": "sudo dnf install -y pnpm nodejs",
"postCreateCommand": "pnpm install --frozen-lockfile",
"forwardPorts": [3000],
"portsAttributes": {
"4321": {
Expand Down
9 changes: 2 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "bun" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ jobs:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- name: Set Up PNPM
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
node-version: lts/*
version: latest

- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
- name: Set Up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
bun-version: latest
node-version: lts/*
cache: "pnpm"

- name: Cache build
id: cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
~/.bun/install/cache
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-

- name: Install dependencies
run: bun ci
run: pnpm ci

- name: Build with Next.js
run: bun run build
run: pnpm run build
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The unified documentation experience for developers hacking on Fyra Labs project

## 🛠️ Dependencies

Please make sure you have `deno` first before building.
Please make sure you have `pnpm` first before building.

## Hacking
### Dev Containers
Expand All @@ -21,8 +21,8 @@ Please make sure you have `deno` first before building.
- Podman users need to install `podman-docker` from their package manager

2. Open your IDE and select the "Reopen in Dev Container" option
3. Run `deno i` to install deps
4. Run `deno run dev` or `deno run dev --host` to start the dev server
3. Run `pnpm i` to install deps
4. Run `pnpm run dev` or `pnpm run dev --host` to start the dev server

### Flox
1. Get [Flox](https://flox.dev/docs/install-flox/install/)
Expand All @@ -32,16 +32,16 @@ Please make sure you have `deno` first before building.
You can run the dev server with `flox services start dev`, or to expose to LAN or Tailnet, run `flox services start dev-host`

### On the Host
1. Install `deno` and `nodejs`
2. Run `deno i` to install deps
3. Run `deno run dev` or `deno run dev --host` to start the dev server
1. Install `pnpm` and `nodejs`
2. Run `pnpm i` to install deps
3. Run `pnpm run dev` or `pnpm run dev --host` to start the dev server


## 🏗️ Building

Simply clone this repo, then:

```bash
deno install
deno run build # or `deno run dev` to run a development server
pnpm install
pnpm run build # or `pnpm run dev` to run a development server
```
Loading