From 18bc6ae0a80115aa48e4ce4de03839a5b3667bfc Mon Sep 17 00:00:00 2001 From: adelnizamutdinov Date: Mon, 28 Sep 2026 05:18:37 +0300 Subject: [PATCH] Replace Nub with Aube for package management --- .github/workflows/ci.yaml | 9 +++------ .moon/tasks/all.yml | 4 ++-- .moon/toolchains.yml | 7 +------ AGENTS.md | 4 ++-- README.md | 15 +++++++-------- nub.lock => aube-lock.yaml | 0 moon.yml | 18 +++++++++--------- package.json | 4 ++-- 8 files changed, 26 insertions(+), 35 deletions(-) rename nub.lock => aube-lock.yaml (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e9fffc0..664eaa2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,17 +23,14 @@ jobs: - uses: actions/setup-node@v6 with: node-version: "24" - - uses: nubjs/setup-nub@v0 + - uses: jdx/aube-action@v1 with: - nub-version: ^0.9.0 + version: "2.5.1" + run-install: true cache: true - cache-dependency-path: | - nub.lock - package.json - uses: moonrepo/setup-toolchain@v0 with: moon-version: "2.5.5" - - run: nub install --frozen-lockfile - name: Check affected tasks id: ci run: moon ci diff --git a/.moon/tasks/all.yml b/.moon/tasks/all.yml index 32f0ad8..4c1d544 100644 --- a/.moon/tasks/all.yml +++ b/.moon/tasks/all.yml @@ -1,8 +1,8 @@ implicitInputs: - moon.yml - /package.json - - /nub.lock + - /aube-lock.yaml - glob: /.node-version - - glob: /nub.jsonc + - glob: /aube-workspace.yaml - /.moon/**/*.yml - /.github/workflows/ci.yaml diff --git a/.moon/toolchains.yml b/.moon/toolchains.yml index 6535672..b14b11c 100644 --- a/.moon/toolchains.yml +++ b/.moon/toolchains.yml @@ -1,11 +1,6 @@ -# Installation and Node selection belong to Nub and the workspace setup. -# Share package-aware task execution with workspaces consuming this repository. +# Aube owns installation; Moon runs explicit commands with the system Node.js. javascript: - packageManager: nub inferTasksFromScripts: false syncPackageManagerField: false syncProjectWorkspaceDependencies: false node: {} -unstable_nub: - # Moon 2.5.5 omits Nub from default locator inheritance. - plugin: https://github.com/moonrepo/plugins/releases/download/node_depman_toolchain-v1.1.0/node_depman_toolchain.wasm diff --git a/AGENTS.md b/AGENTS.md index 1774507..acef330 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,8 +4,8 @@ ## Tools -- use `nub` as package manager -- use `nub exec` to run binaries +- use `aube` as package manager +- use `aube exec` to run binaries ## Verification diff --git a/README.md b/README.md index 3f0690e..d4551db 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Read the introduction: [Another static site generator](https://adelnz.com/writin Install from npm: ```sh -nub add solid-static +aube add solid-static ``` ## Setup @@ -244,10 +244,10 @@ When `src` contains image metadata, specifying only `width` or `height` infers t ## Development and CI -Install Node.js 24, Nub 0.9, and Moon 2.5.5, then run: +Install Node.js 24, Aube 2.5.1, and Moon 2.5.5, then run: ```sh -nub install --frozen-lockfile +aube install --frozen-lockfile moon run solid-static:check ``` @@ -262,11 +262,10 @@ page-specific styles, shared chunks, and root, relative, subpath, and CDN bases. Development tests request Vite's HTML and transformed assets directly over HTTP. Each fixture owns its temporary files and ephemeral ports. -The JavaScript and Node toolchains in `.moon/toolchains.yml` use Nub for package -execution. Installation remains an explicit setup step, and tasks live only in -`moon.yml`. Moon does not install a second package manager or manage a second -Node version. The Nub toolchain names its official plugin explicitly because -Moon 2.5.5 omits its default plugin location. +Moon 2.5.5 has no native Aube package-manager integration. Tasks in `moon.yml` +invoke `aube exec` explicitly, and installation remains a separate setup step. +The JavaScript and Node toolchains provide project metadata and use the system +Node.js without installing another package manager or Node version. The standalone GitHub workflow follows [Moon's CI guide](https://moonrepo.dev/docs/guides/ci): full Git history, dependency installation, then `moon ci` to select affected diff --git a/nub.lock b/aube-lock.yaml similarity index 100% rename from nub.lock rename to aube-lock.yaml diff --git a/moon.yml b/moon.yml index 33703c3..0d9a1ef 100644 --- a/moon.yml +++ b/moon.yml @@ -11,31 +11,31 @@ fileGroups: - tsconfig*.json tasks: lint: - command: nub exec oxlint --config .oxlintrc.json src + command: aube exec oxlint --config .oxlintrc.json src inputs: - .oxlintrc.json - src/**/* - package.json - - /nub.lock + - /aube-lock.yaml build: - command: nub exec tsc -p tsconfig.build.json + command: aube exec tsc -p tsconfig.build.json inputs: - src/**/* - package.json - tsconfig.json - tsconfig.build.json - - /nub.lock + - /aube-lock.yaml outputs: - dist/**/* typecheck: - command: nub exec tsc + command: aube exec tsc inputs: - src/**/* - package.json - tsconfig.json - - /nub.lock + - /aube-lock.yaml test: - command: nub exec vitest run + command: aube exec vitest run deps: - ~:build inputs: @@ -43,7 +43,7 @@ tasks: - package.json - tsconfig.json - vitest.config.ts - - /nub.lock + - /aube-lock.yaml check: deps: - ~:lint @@ -53,7 +53,7 @@ tasks: runInCI: false inputs: [] publish: - command: nub publish --access public + command: aube publish --access public deps: - ~:check - ~:build diff --git a/package.json b/package.json index 491ae13..d9b5d3b 100644 --- a/package.json +++ b/package.json @@ -75,8 +75,8 @@ }, "devEngines": { "packageManager": { - "name": "nub", - "version": "^0.9.0", + "name": "aube", + "version": "2.5.1", "onFail": "warn" } }