From eead0535a24fd777dc2d567858fca296a3f50f6d Mon Sep 17 00:00:00 2001 From: Aksel Mini Date: Mon, 3 Aug 2026 09:15:00 +0200 Subject: [PATCH] =?UTF-8?q?:tada:=20Initial=20commit=20=E2=80=94=20monorep?= =?UTF-8?q?o=20scaffolding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set up pnpm workspace with packages/* and aksel.nav.no/* globs, root README and gitignore. Component packages land in later commits. --- .gitignore | 5 +++++ README.md | 33 +++++++++++++++++++++++++++++++++ package.json | 13 +++++++++++++ pnpm-workspace.yaml | 3 +++ 4 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 package.json create mode 100644 pnpm-workspace.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..622ceaf --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules +dist +*.log +.DS_Store +.vite diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce538d8 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# Aksel Mini + +A small, self-contained imitation of the [Aksel](https://github.com/navikt/aksel) design system monorepo. +It exists purely as a local fixture for testing code-review tooling against a realistic repository layout — +it is **not** affiliated with NAV or the real Aksel project. + +## Layout + +| Path | Package | Description | +| --------------------------- | -------------------- | ---------------------------------------- | +| `packages/core/tokens` | `@navikt/ds-tokens` | Color and spacing tokens, emitted as CSS custom properties | +| `packages/core/css` | `@navikt/ds-css` | Component styles referencing token variables | +| `packages/core/icons` | `@navikt/aksel-icons`| SVG icons as React components | +| `packages/core/react` | `@navikt/ds-react` | React component library | +| `aksel.nav.no/website` | — | Vite-powered documentation site with live examples | + +## Getting started + +```sh +pnpm install +pnpm build +``` + +Then run the website: + +```sh +pnpm --filter website dev +``` + +## Release + +Packages are versioned together. When a change is merged to `main`, bump versions in the affected +packages and add an entry to the package `CHANGELOG.md` files. diff --git a/package.json b/package.json new file mode 100644 index 0000000..8d80396 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "aksel-mini", + "version": "0.0.0", + "private": true, + "description": "Miniature monorepo imitating the Aksel design system layout, used as a local fixture.", + "packageManager": "pnpm@11.20.0", + "engines": { + "node": ">=20" + }, + "scripts": { + "build": "pnpm -r run build" + } +} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..26c1c76 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +packages: + - "packages/**" + - "aksel.nav.no/**"