From ac6a656f62f6aa521e0a5e9fd6fb7c81de0e1599 Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Thu, 19 Feb 2026 23:40:42 +0700 Subject: [PATCH 1/4] chore: migrate deno workspace to moon/proto node setup --- .agents/skills/cssforge | 1 + .agents/skills/moon/SKILL.md | 325 + .agents/skills/moon/examples/ci-workflow.yml | 186 + .agents/skills/moon/examples/moon.yml | 178 + .agents/skills/moon/examples/workspace.yml | 67 + .../skills/moon/references/cli-reference.md | 222 + .agents/skills/moon/references/task-config.md | 743 + .../skills/moon/references/v2-migration.md | 258 + .../moon/references/workspace-config.md | 281 + .agents/skills/proto/SKILL.md | 349 + .../proto/examples/prototools-full.toml | 84 + .agents/skills/proto/references/commands.md | 235 + .agents/skills/proto/references/config.md | 195 + .agents/skills/using-git-worktrees/SKILL.md | 218 + .claude/skills/cssforge | 1 + .claude/skills/using-git-worktrees | 1 + .github/workflows/ci.yaml | 46 +- .github/workflows/release.yaml | 34 +- .gitignore | 6 +- .moon/tasks/node.yml | 23 + .moon/toolchains.yml | 11 + .moon/workspace.yml | 15 + .prototools | 8 + AGENTS.md | 13 +- CLAUDE.md | 1 + README.md | 254 +- biome.json | 11 + deno.json | 35 - deno.lock | 713 - docs/migration-plan-node-moon-proto.md | 102 + example/basic/cssforge.config.ts | 2 +- example/basic/generate-css.ts | 19 +- example/tailwind-nextjs/.gitignore | 45 + example/tailwind-nextjs/README.md | 35 + example/tailwind-nextjs/app/favicon.ico | Bin 0 -> 25931 bytes example/tailwind-nextjs/app/globals.css | 7 + example/tailwind-nextjs/app/layout.tsx | 32 + example/tailwind-nextjs/app/page.tsx | 18 + example/tailwind-nextjs/cssforge.config.ts | 46 + example/tailwind-nextjs/eslint.config.mjs | 18 + example/tailwind-nextjs/moon.yml | 78 + example/tailwind-nextjs/next.config.ts | 7 + example/tailwind-nextjs/package.json | 23 + example/tailwind-nextjs/playwright.config.ts | 25 + example/tailwind-nextjs/postcss.config.mjs | 7 + example/tailwind-nextjs/public/file.svg | 1 + example/tailwind-nextjs/public/globe.svg | 1 + example/tailwind-nextjs/public/next.svg | 1 + example/tailwind-nextjs/public/vercel.svg | 1 + example/tailwind-nextjs/public/window.svg | 1 + example/tailwind-nextjs/tests/e2e.spec.ts | 34 + example/tailwind-nextjs/tsconfig.json | 47 + example/tailwind-nuxt/.gitignore | 28 + example/tailwind-nuxt/README.md | 35 + example/tailwind-nuxt/app/app.vue | 16 + example/tailwind-nuxt/app/assets/css/main.css | 7 + example/tailwind-nuxt/cssforge.config.ts | 46 + example/tailwind-nuxt/moon.yml | 89 + example/tailwind-nuxt/nuxt.config.ts | 10 + example/tailwind-nuxt/package.json | 17 + example/tailwind-nuxt/playwright.config.ts | 25 + example/tailwind-nuxt/public/favicon.ico | Bin 0 -> 4286 bytes example/tailwind-nuxt/public/robots.txt | 2 + example/tailwind-nuxt/tests/e2e.spec.ts | 34 + example/tailwind-nuxt/tsconfig.json | 18 + example/tailwind-solidstart/.gitignore | 32 + example/tailwind-solidstart/README.md | 36 + example/tailwind-solidstart/app.config.ts | 8 + .../tailwind-solidstart/cssforge.config.ts | 46 + example/tailwind-solidstart/moon.yml | 73 + example/tailwind-solidstart/package.json | 20 + .../tailwind-solidstart/playwright.config.ts | 25 + .../tailwind-solidstart/public/favicon.ico | Bin 0 -> 664 bytes example/tailwind-solidstart/src/app.css | 7 + example/tailwind-solidstart/src/app.tsx | 12 + .../src/components/Counter.tsx | 13 + .../src/components/Nav.tsx | 19 + .../tailwind-solidstart/src/entry-client.tsx | 4 + .../tailwind-solidstart/src/entry-server.tsx | 21 + example/tailwind-solidstart/src/global.d.ts | 1 + .../src/routes/[...404].tsx | 25 + .../tailwind-solidstart/src/routes/about.tsx | 25 + .../tailwind-solidstart/src/routes/index.tsx | 18 + example/tailwind-solidstart/tests/e2e.spec.ts | 34 + example/tailwind-solidstart/tsconfig.json | 19 + example/tailwind-sveltekit/.gitignore | 27 + example/tailwind-sveltekit/.npmrc | 1 + example/tailwind-sveltekit/README.md | 36 + example/tailwind-sveltekit/cssforge.config.ts | 46 + example/tailwind-sveltekit/moon.yml | 96 + example/tailwind-sveltekit/package.json | 20 + .../tailwind-sveltekit/playwright.config.ts | 25 + example/tailwind-sveltekit/src/app.css | 7 + example/tailwind-sveltekit/src/app.d.ts | 13 + example/tailwind-sveltekit/src/app.html | 11 + .../src/lib/assets/favicon.svg | 1 + example/tailwind-sveltekit/src/lib/index.ts | 1 + .../src/routes/+layout.svelte | 7 + .../src/routes/+page.svelte | 14 + example/tailwind-sveltekit/static/robots.txt | 3 + example/tailwind-sveltekit/svelte.config.js | 13 + example/tailwind-sveltekit/tests/e2e.spec.ts | 34 + example/tailwind-sveltekit/tsconfig.json | 20 + example/tailwind-sveltekit/vite.config.ts | 7 + example/vanilla-react-css/.gitignore | 28 + example/vanilla-react-css/README.md | 34 + example/vanilla-react-css/cssforge.config.ts | 46 + example/vanilla-react-css/eslint.config.js | 23 + example/vanilla-react-css/index.html | 13 + example/vanilla-react-css/moon.yml | 76 + example/vanilla-react-css/package.json | 27 + .../vanilla-react-css/playwright.config.ts | 25 + example/vanilla-react-css/public/vite.svg | 1 + example/vanilla-react-css/src/App.css | 14 + example/vanilla-react-css/src/App.tsx | 17 + .../vanilla-react-css/src/assets/react.svg | 1 + example/vanilla-react-css/src/index.css | 16 + example/vanilla-react-css/src/main.tsx | 10 + example/vanilla-react-css/tests/e2e.spec.ts | 34 + example/vanilla-react-css/tsconfig.app.json | 28 + example/vanilla-react-css/tsconfig.json | 14 + example/vanilla-react-css/tsconfig.node.json | 26 + example/vanilla-react-css/vite.config.ts | 7 + example/vanilla-solid-css/.gitignore | 28 + example/vanilla-solid-css/README.md | 34 + example/vanilla-solid-css/cssforge.config.ts | 46 + example/vanilla-solid-css/index.html | 13 + example/vanilla-solid-css/moon.yml | 71 + example/vanilla-solid-css/package.json | 18 + .../vanilla-solid-css/playwright.config.ts | 25 + example/vanilla-solid-css/public/vite.svg | 1 + example/vanilla-solid-css/src/App.css | 14 + example/vanilla-solid-css/src/App.tsx | 17 + .../vanilla-solid-css/src/assets/solid.svg | 1 + example/vanilla-solid-css/src/index.css | 16 + example/vanilla-solid-css/src/index.tsx | 8 + example/vanilla-solid-css/tests/e2e.spec.ts | 34 + example/vanilla-solid-css/tsconfig.app.json | 29 + example/vanilla-solid-css/tsconfig.json | 7 + example/vanilla-solid-css/tsconfig.node.json | 26 + example/vanilla-solid-css/vite.config.ts | 6 + example/vanilla-svelte-css/.gitignore | 28 + .../.vscode/extensions.json | 3 + example/vanilla-svelte-css/README.md | 34 + example/vanilla-svelte-css/cssforge.config.ts | 46 + example/vanilla-svelte-css/index.html | 13 + example/vanilla-svelte-css/moon.yml | 76 + example/vanilla-svelte-css/package.json | 18 + .../vanilla-svelte-css/playwright.config.ts | 25 + example/vanilla-svelte-css/public/vite.svg | 1 + example/vanilla-svelte-css/src/App.svelte | 9 + example/vanilla-svelte-css/src/app.css | 31 + .../vanilla-svelte-css/src/assets/svelte.svg | 1 + .../vanilla-svelte-css/src/lib/Counter.svelte | 10 + example/vanilla-svelte-css/src/main.ts | 9 + example/vanilla-svelte-css/svelte.config.js | 8 + example/vanilla-svelte-css/tests/e2e.spec.ts | 34 + example/vanilla-svelte-css/tsconfig.app.json | 21 + example/vanilla-svelte-css/tsconfig.json | 7 + example/vanilla-svelte-css/tsconfig.node.json | 26 + example/vanilla-svelte-css/vite.config.ts | 7 + example/vanilla-vue-css/.gitignore | 28 + .../vanilla-vue-css/.vscode/extensions.json | 3 + example/vanilla-vue-css/README.md | 34 + example/vanilla-vue-css/cssforge.config.ts | 46 + example/vanilla-vue-css/index.html | 13 + example/vanilla-vue-css/moon.yml | 71 + example/vanilla-vue-css/package.json | 20 + example/vanilla-vue-css/playwright.config.ts | 25 + example/vanilla-vue-css/public/vite.svg | 1 + example/vanilla-vue-css/src/App.vue | 11 + example/vanilla-vue-css/src/assets/vue.svg | 1 + .../src/components/HelloWorld.vue | 41 + example/vanilla-vue-css/src/main.ts | 5 + example/vanilla-vue-css/src/style.css | 31 + example/vanilla-vue-css/tests/e2e.spec.ts | 34 + example/vanilla-vue-css/tsconfig.app.json | 16 + example/vanilla-vue-css/tsconfig.json | 7 + example/vanilla-vue-css/tsconfig.node.json | 26 + example/vanilla-vue-css/vite.config.ts | 7 + package.json | 13 +- .../cssforge/CHANGELOG.md | 0 packages/cssforge/README.md | 1089 ++ packages/cssforge/deno.json | 18 + packages/cssforge/moon.yml | 112 + packages/cssforge/package.json | 39 + packages/cssforge/scripts/sync-version.js | 16 + packages/cssforge/scripts/update-readme.ts | 156 + packages/cssforge/src/cli.ts | 218 + {src => packages/cssforge/src}/config.ts | 34 +- packages/cssforge/src/generator.ts | 230 + packages/cssforge/src/helpers.ts | 53 + packages/cssforge/src/lib.ts | 147 + packages/cssforge/src/mod.ts | 59 + packages/cssforge/src/modules/colors.ts | 423 + packages/cssforge/src/modules/primitive.ts | 138 + packages/cssforge/src/modules/spacing.ts | 128 + packages/cssforge/src/modules/typography.ts | 123 + .../tests/__snapshots__/colors.test.ts.snap | 460 + .../__snapshots__/primitive.test.ts.snap | 180 + .../tests/__snapshots__/spacing.test.ts.snap | 293 + .../__snapshots__/typography.test.ts.snap | 274 + packages/cssforge/tests/colors.test.ts | 589 + {tests => packages/cssforge/tests}/helpers.ts | 6 +- packages/cssforge/tests/primitive.test.ts | 231 + packages/cssforge/tests/spacing.test.ts | 207 + packages/cssforge/tests/typography.test.ts | 162 + packages/cssforge/tests/vitest-compat.ts | 18 + packages/cssforge/tsconfig.json | 13 + packages/cssforge/tsup.config.ts | 14 + packages/cssforge/vitest.config.ts | 7 + packages/repo-tools/moon.yml | 15 + pnpm-lock.yaml | 13227 ++++++++++++++++ pnpm-workspace.yaml | 3 + scripts/sync-version.js | 15 - scripts/update-readme.ts | 193 - skills/cssforge/SKILL.md | 52 + .../assets/config-templates/minimal.ts | 29 + .../assets/config-templates/tailwind.ts | 46 + .../assets/config-templates/vanilla-css.ts | 26 + .../assets/snippets/css-import-tailwind.css | 2 + .../assets/snippets/css-import-vanilla.css | 1 + skills/cssforge/references/cli-reference.md | 27 + skills/cssforge/references/docs-index.md | 31 + .../cssforge/references/source-schema-map.md | 28 + skills/cssforge/references/token-patterns.md | 31 + skills/cssforge/references/troubleshooting.md | 29 + skills/moon | 1 + skills/proto | 1 + src/cli.ts | 202 - src/generator.ts | 218 - src/helpers.ts | 55 - src/lib.ts | 144 - src/mod.ts | 59 - src/modules/colors.ts | 429 - src/modules/primitive.ts | 147 - src/modules/spacing.ts | 128 - src/modules/typography.ts | 123 - tests/__snapshots__/colors.test.ts.snap | 460 - tests/__snapshots__/primitive.test.ts.snap | 180 - tests/__snapshots__/spacing.test.ts.snap | 293 - tests/__snapshots__/typography.test.ts.snap | 274 - tests/colors.test.ts | 624 - tests/primitive.test.ts | 232 - tests/spacing.test.ts | 204 - tests/typography.test.ts | 187 - tsconfig.base.json | 14 + 247 files changed, 25928 insertions(+), 5124 deletions(-) create mode 120000 .agents/skills/cssforge create mode 100644 .agents/skills/moon/SKILL.md create mode 100644 .agents/skills/moon/examples/ci-workflow.yml create mode 100644 .agents/skills/moon/examples/moon.yml create mode 100644 .agents/skills/moon/examples/workspace.yml create mode 100644 .agents/skills/moon/references/cli-reference.md create mode 100644 .agents/skills/moon/references/task-config.md create mode 100644 .agents/skills/moon/references/v2-migration.md create mode 100644 .agents/skills/moon/references/workspace-config.md create mode 100644 .agents/skills/proto/SKILL.md create mode 100644 .agents/skills/proto/examples/prototools-full.toml create mode 100644 .agents/skills/proto/references/commands.md create mode 100644 .agents/skills/proto/references/config.md create mode 100644 .agents/skills/using-git-worktrees/SKILL.md create mode 120000 .claude/skills/cssforge create mode 120000 .claude/skills/using-git-worktrees create mode 100644 .moon/tasks/node.yml create mode 100644 .moon/toolchains.yml create mode 100644 .moon/workspace.yml create mode 100644 .prototools create mode 100644 CLAUDE.md create mode 100644 biome.json delete mode 100644 deno.json delete mode 100644 deno.lock create mode 100644 docs/migration-plan-node-moon-proto.md create mode 100644 example/tailwind-nextjs/.gitignore create mode 100644 example/tailwind-nextjs/README.md create mode 100644 example/tailwind-nextjs/app/favicon.ico create mode 100644 example/tailwind-nextjs/app/globals.css create mode 100644 example/tailwind-nextjs/app/layout.tsx create mode 100644 example/tailwind-nextjs/app/page.tsx create mode 100644 example/tailwind-nextjs/cssforge.config.ts create mode 100644 example/tailwind-nextjs/eslint.config.mjs create mode 100644 example/tailwind-nextjs/moon.yml create mode 100644 example/tailwind-nextjs/next.config.ts create mode 100644 example/tailwind-nextjs/package.json create mode 100644 example/tailwind-nextjs/playwright.config.ts create mode 100644 example/tailwind-nextjs/postcss.config.mjs create mode 100644 example/tailwind-nextjs/public/file.svg create mode 100644 example/tailwind-nextjs/public/globe.svg create mode 100644 example/tailwind-nextjs/public/next.svg create mode 100644 example/tailwind-nextjs/public/vercel.svg create mode 100644 example/tailwind-nextjs/public/window.svg create mode 100644 example/tailwind-nextjs/tests/e2e.spec.ts create mode 100644 example/tailwind-nextjs/tsconfig.json create mode 100644 example/tailwind-nuxt/.gitignore create mode 100644 example/tailwind-nuxt/README.md create mode 100644 example/tailwind-nuxt/app/app.vue create mode 100644 example/tailwind-nuxt/app/assets/css/main.css create mode 100644 example/tailwind-nuxt/cssforge.config.ts create mode 100644 example/tailwind-nuxt/moon.yml create mode 100644 example/tailwind-nuxt/nuxt.config.ts create mode 100644 example/tailwind-nuxt/package.json create mode 100644 example/tailwind-nuxt/playwright.config.ts create mode 100644 example/tailwind-nuxt/public/favicon.ico create mode 100644 example/tailwind-nuxt/public/robots.txt create mode 100644 example/tailwind-nuxt/tests/e2e.spec.ts create mode 100644 example/tailwind-nuxt/tsconfig.json create mode 100644 example/tailwind-solidstart/.gitignore create mode 100644 example/tailwind-solidstart/README.md create mode 100644 example/tailwind-solidstart/app.config.ts create mode 100644 example/tailwind-solidstart/cssforge.config.ts create mode 100644 example/tailwind-solidstart/moon.yml create mode 100644 example/tailwind-solidstart/package.json create mode 100644 example/tailwind-solidstart/playwright.config.ts create mode 100644 example/tailwind-solidstart/public/favicon.ico create mode 100644 example/tailwind-solidstart/src/app.css create mode 100644 example/tailwind-solidstart/src/app.tsx create mode 100644 example/tailwind-solidstart/src/components/Counter.tsx create mode 100644 example/tailwind-solidstart/src/components/Nav.tsx create mode 100644 example/tailwind-solidstart/src/entry-client.tsx create mode 100644 example/tailwind-solidstart/src/entry-server.tsx create mode 100644 example/tailwind-solidstart/src/global.d.ts create mode 100644 example/tailwind-solidstart/src/routes/[...404].tsx create mode 100644 example/tailwind-solidstart/src/routes/about.tsx create mode 100644 example/tailwind-solidstart/src/routes/index.tsx create mode 100644 example/tailwind-solidstart/tests/e2e.spec.ts create mode 100644 example/tailwind-solidstart/tsconfig.json create mode 100644 example/tailwind-sveltekit/.gitignore create mode 100644 example/tailwind-sveltekit/.npmrc create mode 100644 example/tailwind-sveltekit/README.md create mode 100644 example/tailwind-sveltekit/cssforge.config.ts create mode 100644 example/tailwind-sveltekit/moon.yml create mode 100644 example/tailwind-sveltekit/package.json create mode 100644 example/tailwind-sveltekit/playwright.config.ts create mode 100644 example/tailwind-sveltekit/src/app.css create mode 100644 example/tailwind-sveltekit/src/app.d.ts create mode 100644 example/tailwind-sveltekit/src/app.html create mode 100644 example/tailwind-sveltekit/src/lib/assets/favicon.svg create mode 100644 example/tailwind-sveltekit/src/lib/index.ts create mode 100644 example/tailwind-sveltekit/src/routes/+layout.svelte create mode 100644 example/tailwind-sveltekit/src/routes/+page.svelte create mode 100644 example/tailwind-sveltekit/static/robots.txt create mode 100644 example/tailwind-sveltekit/svelte.config.js create mode 100644 example/tailwind-sveltekit/tests/e2e.spec.ts create mode 100644 example/tailwind-sveltekit/tsconfig.json create mode 100644 example/tailwind-sveltekit/vite.config.ts create mode 100644 example/vanilla-react-css/.gitignore create mode 100644 example/vanilla-react-css/README.md create mode 100644 example/vanilla-react-css/cssforge.config.ts create mode 100644 example/vanilla-react-css/eslint.config.js create mode 100644 example/vanilla-react-css/index.html create mode 100644 example/vanilla-react-css/moon.yml create mode 100644 example/vanilla-react-css/package.json create mode 100644 example/vanilla-react-css/playwright.config.ts create mode 100644 example/vanilla-react-css/public/vite.svg create mode 100644 example/vanilla-react-css/src/App.css create mode 100644 example/vanilla-react-css/src/App.tsx create mode 100644 example/vanilla-react-css/src/assets/react.svg create mode 100644 example/vanilla-react-css/src/index.css create mode 100644 example/vanilla-react-css/src/main.tsx create mode 100644 example/vanilla-react-css/tests/e2e.spec.ts create mode 100644 example/vanilla-react-css/tsconfig.app.json create mode 100644 example/vanilla-react-css/tsconfig.json create mode 100644 example/vanilla-react-css/tsconfig.node.json create mode 100644 example/vanilla-react-css/vite.config.ts create mode 100644 example/vanilla-solid-css/.gitignore create mode 100644 example/vanilla-solid-css/README.md create mode 100644 example/vanilla-solid-css/cssforge.config.ts create mode 100644 example/vanilla-solid-css/index.html create mode 100644 example/vanilla-solid-css/moon.yml create mode 100644 example/vanilla-solid-css/package.json create mode 100644 example/vanilla-solid-css/playwright.config.ts create mode 100644 example/vanilla-solid-css/public/vite.svg create mode 100644 example/vanilla-solid-css/src/App.css create mode 100644 example/vanilla-solid-css/src/App.tsx create mode 100644 example/vanilla-solid-css/src/assets/solid.svg create mode 100644 example/vanilla-solid-css/src/index.css create mode 100644 example/vanilla-solid-css/src/index.tsx create mode 100644 example/vanilla-solid-css/tests/e2e.spec.ts create mode 100644 example/vanilla-solid-css/tsconfig.app.json create mode 100644 example/vanilla-solid-css/tsconfig.json create mode 100644 example/vanilla-solid-css/tsconfig.node.json create mode 100644 example/vanilla-solid-css/vite.config.ts create mode 100644 example/vanilla-svelte-css/.gitignore create mode 100644 example/vanilla-svelte-css/.vscode/extensions.json create mode 100644 example/vanilla-svelte-css/README.md create mode 100644 example/vanilla-svelte-css/cssforge.config.ts create mode 100644 example/vanilla-svelte-css/index.html create mode 100644 example/vanilla-svelte-css/moon.yml create mode 100644 example/vanilla-svelte-css/package.json create mode 100644 example/vanilla-svelte-css/playwright.config.ts create mode 100644 example/vanilla-svelte-css/public/vite.svg create mode 100644 example/vanilla-svelte-css/src/App.svelte create mode 100644 example/vanilla-svelte-css/src/app.css create mode 100644 example/vanilla-svelte-css/src/assets/svelte.svg create mode 100644 example/vanilla-svelte-css/src/lib/Counter.svelte create mode 100644 example/vanilla-svelte-css/src/main.ts create mode 100644 example/vanilla-svelte-css/svelte.config.js create mode 100644 example/vanilla-svelte-css/tests/e2e.spec.ts create mode 100644 example/vanilla-svelte-css/tsconfig.app.json create mode 100644 example/vanilla-svelte-css/tsconfig.json create mode 100644 example/vanilla-svelte-css/tsconfig.node.json create mode 100644 example/vanilla-svelte-css/vite.config.ts create mode 100644 example/vanilla-vue-css/.gitignore create mode 100644 example/vanilla-vue-css/.vscode/extensions.json create mode 100644 example/vanilla-vue-css/README.md create mode 100644 example/vanilla-vue-css/cssforge.config.ts create mode 100644 example/vanilla-vue-css/index.html create mode 100644 example/vanilla-vue-css/moon.yml create mode 100644 example/vanilla-vue-css/package.json create mode 100644 example/vanilla-vue-css/playwright.config.ts create mode 100644 example/vanilla-vue-css/public/vite.svg create mode 100644 example/vanilla-vue-css/src/App.vue create mode 100644 example/vanilla-vue-css/src/assets/vue.svg create mode 100644 example/vanilla-vue-css/src/components/HelloWorld.vue create mode 100644 example/vanilla-vue-css/src/main.ts create mode 100644 example/vanilla-vue-css/src/style.css create mode 100644 example/vanilla-vue-css/tests/e2e.spec.ts create mode 100644 example/vanilla-vue-css/tsconfig.app.json create mode 100644 example/vanilla-vue-css/tsconfig.json create mode 100644 example/vanilla-vue-css/tsconfig.node.json create mode 100644 example/vanilla-vue-css/vite.config.ts rename CHANGELOG.md => packages/cssforge/CHANGELOG.md (100%) create mode 100644 packages/cssforge/README.md create mode 100644 packages/cssforge/deno.json create mode 100644 packages/cssforge/moon.yml create mode 100644 packages/cssforge/package.json create mode 100644 packages/cssforge/scripts/sync-version.js create mode 100644 packages/cssforge/scripts/update-readme.ts create mode 100644 packages/cssforge/src/cli.ts rename {src => packages/cssforge/src}/config.ts (77%) create mode 100644 packages/cssforge/src/generator.ts create mode 100644 packages/cssforge/src/helpers.ts create mode 100644 packages/cssforge/src/lib.ts create mode 100644 packages/cssforge/src/mod.ts create mode 100644 packages/cssforge/src/modules/colors.ts create mode 100644 packages/cssforge/src/modules/primitive.ts create mode 100644 packages/cssforge/src/modules/spacing.ts create mode 100644 packages/cssforge/src/modules/typography.ts create mode 100644 packages/cssforge/tests/__snapshots__/colors.test.ts.snap create mode 100644 packages/cssforge/tests/__snapshots__/primitive.test.ts.snap create mode 100644 packages/cssforge/tests/__snapshots__/spacing.test.ts.snap create mode 100644 packages/cssforge/tests/__snapshots__/typography.test.ts.snap create mode 100644 packages/cssforge/tests/colors.test.ts rename {tests => packages/cssforge/tests}/helpers.ts (55%) create mode 100644 packages/cssforge/tests/primitive.test.ts create mode 100644 packages/cssforge/tests/spacing.test.ts create mode 100644 packages/cssforge/tests/typography.test.ts create mode 100644 packages/cssforge/tests/vitest-compat.ts create mode 100644 packages/cssforge/tsconfig.json create mode 100644 packages/cssforge/tsup.config.ts create mode 100644 packages/cssforge/vitest.config.ts create mode 100644 packages/repo-tools/moon.yml create mode 100644 pnpm-lock.yaml create mode 100644 pnpm-workspace.yaml delete mode 100644 scripts/sync-version.js delete mode 100644 scripts/update-readme.ts create mode 100644 skills/cssforge/SKILL.md create mode 100644 skills/cssforge/assets/config-templates/minimal.ts create mode 100644 skills/cssforge/assets/config-templates/tailwind.ts create mode 100644 skills/cssforge/assets/config-templates/vanilla-css.ts create mode 100644 skills/cssforge/assets/snippets/css-import-tailwind.css create mode 100644 skills/cssforge/assets/snippets/css-import-vanilla.css create mode 100644 skills/cssforge/references/cli-reference.md create mode 100644 skills/cssforge/references/docs-index.md create mode 100644 skills/cssforge/references/source-schema-map.md create mode 100644 skills/cssforge/references/token-patterns.md create mode 100644 skills/cssforge/references/troubleshooting.md create mode 120000 skills/moon create mode 120000 skills/proto delete mode 100644 src/cli.ts delete mode 100644 src/generator.ts delete mode 100644 src/helpers.ts delete mode 100644 src/lib.ts delete mode 100644 src/mod.ts delete mode 100644 src/modules/colors.ts delete mode 100644 src/modules/primitive.ts delete mode 100644 src/modules/spacing.ts delete mode 100644 src/modules/typography.ts delete mode 100644 tests/__snapshots__/colors.test.ts.snap delete mode 100644 tests/__snapshots__/primitive.test.ts.snap delete mode 100644 tests/__snapshots__/spacing.test.ts.snap delete mode 100644 tests/__snapshots__/typography.test.ts.snap delete mode 100644 tests/colors.test.ts delete mode 100644 tests/primitive.test.ts delete mode 100644 tests/spacing.test.ts delete mode 100644 tests/typography.test.ts create mode 100644 tsconfig.base.json diff --git a/.agents/skills/cssforge b/.agents/skills/cssforge new file mode 120000 index 0000000..2e01389 --- /dev/null +++ b/.agents/skills/cssforge @@ -0,0 +1 @@ +../../skills/cssforge \ No newline at end of file diff --git a/.agents/skills/moon/SKILL.md b/.agents/skills/moon/SKILL.md new file mode 100644 index 0000000..04ced25 --- /dev/null +++ b/.agents/skills/moon/SKILL.md @@ -0,0 +1,325 @@ +--- +name: moon +description: This skill should be used when the user asks to "configure moon", "set up moonrepo", "create moon tasks", "run moon commands", "configure moon workspace", "add moon project", "moon ci setup", "moon docker", "moon query", "migrate to moon v2", or mentions moon.yml, .moon/workspace.yml, .moon/toolchains.yml, moon run, moon ci, or moonrepo in general. +--- + +# moon - Polyglot Monorepo Build System + +moon is a Rust-based repository management, task orchestration, and build system for polyglot monorepos. It provides smart caching, dependency-aware task execution, and unified toolchain management. + +> **moon v2 is now available.** Run `moon migrate v2` to migrate. See `references/v2-migration.md` for breaking changes. + +## When to Use moon + +- Managing monorepos with multiple projects/packages +- Orchestrating tasks across projects with dependencies +- Caching build outputs for faster CI/local builds +- Managing toolchain versions (Node.js, Rust, Python, Go, etc.) +- Generating project and action graphs + +## Quick Reference + +### Core Commands + +```bash +moon run # Run task(s) +moon run :lint # Run in all projects +moon run '#tag:test' # Run by tag +moon ci # CI-optimized execution +moon check --all # Run all build/test tasks +moon query projects # List projects +moon project-graph # Visualize dependencies +``` + +### Target Syntax + +| Pattern | Description | +| -------------- | ------------------------------- | +| `project:task` | Specific project and task | +| `:task` | All projects with this task | +| `#tag:task` | Projects with tag | +| `^:task` | Upstream dependencies (in deps) | +| `~:task` | Current project (in configs) | + +### Configuration Files + +| File | Purpose | +| ---------------------- | ---------------------------------------- | +| `.moon/workspace.yml` | Workspace settings, project discovery | +| `.moon/toolchains.yml` | Language versions, package managers (v2) | +| `.moon/tasks/*.yml` | Global inherited tasks (v2) | +| `moon.yml` | Project-level config and tasks | + +> **v2 Note:** `.moon/toolchain.yml` → `.moon/toolchains.yml` (plural), `.moon/tasks.yml` → `.moon/tasks/*.yml` + +## Workspace Configuration + +```yaml +# .moon/workspace.yml +$schema: "https://moonrepo.dev/schemas/workspace.json" + +projects: + - "apps/*" + - "packages/*" + +vcs: + client: "git" + defaultBranch: "main" + +pipeline: + archivableTargets: + - ":build" + cacheLifetime: "7 days" +``` + +## Project Configuration + +```yaml +# moon.yml +$schema: "https://moonrepo.dev/schemas/project.json" + +language: "typescript" +layer: "application" # v2: 'type' renamed to 'layer' +stack: "frontend" +tags: ["react", "graphql"] + +dependsOn: + - "shared-utils" + - id: "api-client" + scope: "production" + +fileGroups: + sources: + - "src/**/*" + tests: + - "tests/**/*" + +tasks: + build: + command: "vite build" + inputs: + - "@group(sources)" + outputs: + - "dist" + deps: + - "^:build" + + dev: + command: "vite dev" + preset: "server" + + # v2: Use 'script' for shell features (pipes, redirects) + lint: + script: "eslint . && prettier --check ." + + test: + command: "vitest run" + inputs: + - "@group(sources)" + - "@group(tests)" +``` + +### Layer Types (v2) + +| Layer | Description | +| --------------- | --------------------- | +| `application` | Apps, services | +| `library` | Shareable code | +| `tool` | CLIs, scripts | +| `automation` | E2E/integration tests | +| `scaffolding` | Templates, generators | +| `configuration` | Infra, config | + +## Task Configuration + +### Task Fields + +| Field | Description | +| --------- | ------------------------------------ | +| `command` | Command to execute (string or array) | +| `args` | Additional arguments | +| `deps` | Task dependencies | +| `inputs` | Files for cache hashing | +| `outputs` | Files to cache | +| `env` | Environment variables | +| `extends` | Inherit from another task | +| `preset` | `server` or `utility` | + +### Task Inheritance + +Tasks can be inherited globally via `.moon/tasks/*.yml`: + +```yaml +# .moon/tasks/node.yml +inheritedBy: + toolchains: ["javascript", "typescript"] + +fileGroups: + sources: ["src/**/*"] + +tasks: + lint: + command: "eslint ." + inputs: ["@group(sources)"] +``` + +Projects control inheritance: + +```yaml +# moon.yml +workspace: + inheritedTasks: + include: ["lint", "test"] + exclude: ["deploy"] + rename: + buildApp: "build" +``` + +### Task Options + +```yaml +tasks: + example: + command: "cmd" + options: + cache: true # Enable caching + runInCI: "affected" # affected, always, only, false + persistent: true # Long-running process + retryCount: 2 # Retry on failure + timeout: 300 # Seconds + mutex: "resource" # Exclusive lock + priority: "high" # critical, high, normal, low +``` + +### Input Tokens + +```yaml +inputs: + - "@group(sources)" # File group + - "@globs(tests)" # Glob patterns + - "/tsconfig.base.json" # Workspace root file + - "$NODE_ENV" # Environment variable +``` + +## Toolchain Configuration + +```yaml +# .moon/toolchains.yml (v2: plural) +$schema: "https://moonrepo.dev/schemas/toolchains.json" + +# JavaScript ecosystem (v2: required for node/bun/deno) +javascript: + packageManager: "pnpm" + inferTasksFromScripts: false + +node: + version: "20.10.0" + +pnpm: + version: "8.12.0" + +# Alternative runtimes +bun: + version: "1.0.0" + +deno: + version: "1.40.0" + +typescript: + syncProjectReferences: true + routeOutDirToCache: true + +rust: + version: "1.75.0" + bins: ["cargo-nextest", "cargo-llvm-cov"] + +go: + version: "1.21.0" + +python: + version: "3.12.0" +``` + +### Toolchain Tiers + +| Tier | Description | Examples | +| ---- | ---------------------- | ------------------------------------ | +| 3 | Full management | Node.js, Bun, Deno, Rust, Go, Python | +| 2 | Ecosystem integration | PHP, Ruby | +| 1 | Project categorization | Bash, Batch | +| 0 | System execution | Custom tools | + +## CI Integration + +```yaml +# GitHub Actions +- uses: actions/checkout@v4 + with: + fetch-depth: 0 # Required for affected detection + +- uses: moonrepo/setup-toolchain@v0 + with: + auto-install: true + +- run: moon ci :build :test + +- uses: moonrepo/run-report-action@v1 + if: success() || failure() + with: + access-token: ${{ secrets.GITHUB_TOKEN }} +``` + +### Parallelization with Matrix + +```yaml +strategy: + matrix: + shard: [0, 1, 2, 3] + +steps: + - run: moon ci --job ${{ matrix.shard }} --job-total 4 +``` + +### Affected Detection + +```bash +moon run :test --affected # Only affected projects +moon run :lint --affected --status staged # Only staged files +moon ci :test --base origin/main # Compare against base +moon query changed-files # v2: renamed from touched-files +``` + +## Docker Support + +```bash +moon docker scaffold # Generate Docker layers +moon docker setup # Install toolchain in Docker +moon docker prune # Prune for production +moon docker file # Generate Dockerfile +``` + +## Moon Query Language (MQL) + +```bash +# Filter projects +moon query projects "language=typescript && projectType=library" +moon run :build --query "tag=react" + +# Operators: =, !=, ~, !~, &&, || +# Fields: project, language, stack, tag, task, taskType +``` + +## Additional Resources + +For detailed configuration options, consult: + +- **`references/workspace-config.md`** - Complete workspace.yml reference +- **`references/task-config.md`** - Task configuration and inheritance patterns +- **`references/v2-migration.md`** - v1 to v2 migration guide +- **`references/cli-reference.md`** - Full CLI command reference + +### Examples + +- **`examples/workspace.yml`** - Complete workspace configuration +- **`examples/moon.yml`** - Full project configuration +- **`examples/ci-workflow.yml`** - GitHub Actions CI workflow diff --git a/.agents/skills/moon/examples/ci-workflow.yml b/.agents/skills/moon/examples/ci-workflow.yml new file mode 100644 index 0000000..dc8f68b --- /dev/null +++ b/.agents/skills/moon/examples/ci-workflow.yml @@ -0,0 +1,186 @@ +# .github/workflows/ci.yml +# Complete moon CI workflow with matrix parallelization and run reports + +name: CI Pipeline + +on: + push: + branches: ['main', 'develop'] + pull_request: + types: [opened, synchronize, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + ci: + name: 'CI (${{ matrix.shard }})' + runs-on: 'ubuntu-latest' + strategy: + fail-fast: false + matrix: + shard: [0, 1, 2, 3] + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Required for affected detection + + - name: Setup Toolchain + uses: moonrepo/setup-toolchain@v0 + with: + auto-install: true + + - name: Run CI + run: moon ci --job ${{ matrix.shard }} --job-total 4 + + - name: Report Results + uses: moonrepo/run-report-action@v1 + if: success() || failure() + with: + access-token: ${{ secrets.GITHUB_TOKEN }} + matrix: ${{ toJSON(matrix) }} + +--- + +# Alternative: Split by task type +# .github/workflows/ci-split.yml + +name: CI Pipeline (Split) + +on: + push: + branches: ['main'] + pull_request: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: moonrepo/setup-toolchain@v0 + with: + auto-install: true + - run: moon ci :build + + lint: + name: Lint & Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: moonrepo/setup-toolchain@v0 + with: + auto-install: true + - run: moon ci :lint :format + + test: + name: Test + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: moonrepo/setup-toolchain@v0 + with: + auto-install: true + - run: moon ci :test + +--- + +# Open source multi-platform testing +# .github/workflows/ci-matrix.yml + +name: CI Matrix + +on: + push: + branches: ['main'] + pull_request: + +jobs: + ci: + name: 'CI (Node ${{ matrix.node }}, ${{ matrix.os }})' + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node: [18, 20, 22] + + env: + MOON_NODE_VERSION: ${{ matrix.node }} + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - uses: moonrepo/setup-toolchain@v0 + with: + auto-install: true + + - run: moon ci + + - uses: moonrepo/run-report-action@v1 + if: success() || failure() + with: + access-token: ${{ secrets.GITHUB_TOKEN }} + matrix: ${{ toJSON(matrix) }} + +--- + +# CircleCI configuration +# .circleci/config.yml + +version: 2.1 +orbs: + node: circleci/node@5.0.2 + +jobs: + ci: + docker: + - image: cimg/base:stable + parallelism: 10 + steps: + - checkout + - node/install: + install-yarn: true + node-version: '20' + - node/install-packages: + check-cache: always + pkg-manager: yarn-berry + - run: | + curl -fsSL https://moonrepo.dev/install/proto.sh | bash + export PATH="$HOME/.proto/bin:$PATH" + moon ci --job $CIRCLE_NODE_INDEX --job-total $CIRCLE_NODE_TOTAL + +workflows: + ci: + jobs: + - ci + +--- + +# Buildkite configuration +# .buildkite/pipeline.yml + +steps: + - label: 'CI' + parallelism: 10 + commands: + - curl -fsSL https://moonrepo.dev/install/proto.sh | bash + - export PATH="$HOME/.proto/bin:$PATH" + - proto install + - moon ci --job $$BUILDKITE_PARALLEL_JOB --job-total $$BUILDKITE_PARALLEL_JOB_COUNT diff --git a/.agents/skills/moon/examples/moon.yml b/.agents/skills/moon/examples/moon.yml new file mode 100644 index 0000000..ecc330e --- /dev/null +++ b/.agents/skills/moon/examples/moon.yml @@ -0,0 +1,178 @@ +# moon.yml - Complete project configuration example +$schema: 'https://moonrepo.dev/schemas/project.json' + +# Project classification +language: 'typescript' +layer: 'application' +stack: 'frontend' + +# Metadata +project: + name: 'Web Application' + description: 'Main customer-facing web application' + owner: 'frontend-team' + maintainers: + - 'alice' + - 'bob' + channel: '#web-app' + metadata: + tier: 1 + public: true + +# Tags for querying and constraints +tags: + - 'react' + - 'next' + - 'customer-facing' + +# Explicit project dependencies +dependsOn: + - 'ui-components' + - 'shared-utils' + - id: 'api-client' + scope: 'production' + - id: 'test-fixtures' + scope: 'development' + +# Environment variables for all tasks +env: + NEXT_PUBLIC_API_URL: 'https://api.example.com' + NODE_ENV: 'production' + +# Per-project toolchain overrides +toolchain: + default: 'node' + node: + version: '20.10.0' + typescript: + includeProjectReferenceSources: true + routeOutDirToCache: true + +# File groups for reuse in tasks +fileGroups: + sources: + - 'src/**/*' + - 'app/**/*' + - 'components/**/*' + tests: + - 'tests/**/*' + - '**/*.test.{ts,tsx}' + - '**/__tests__/**/*' + configs: + - 'next.config.js' + - 'tailwind.config.js' + - 'tsconfig.json' + - 'postcss.config.js' + assets: + - 'public/**/*' + +# Control task inheritance +workspace: + inheritedTasks: + exclude: + - 'deploy-staging' + rename: + buildApp: 'build' + +# Task definitions +tasks: + build: + command: 'next build' + inputs: + - '@group(sources)' + - '@group(configs)' + - '@group(assets)' + outputs: + - '.next' + deps: + - 'ui-components:build' + - 'api-client:build' + env: + NODE_ENV: 'production' + options: + cache: true + priority: 'high' + + dev: + command: 'next dev' + preset: 'server' + deps: + - '~:codegen' + env: + NODE_ENV: 'development' + + start: + command: 'next start' + preset: 'server' + deps: + - '~:build' + + test: + command: 'vitest run' + inputs: + - '@group(sources)' + - '@group(tests)' + deps: + - '^:build' + options: + retryCount: 2 + runInCI: 'affected' + + test-watch: + command: 'vitest' + preset: 'watcher' + + lint: + command: 'eslint' + args: + - '.' + - '--ext' + - '.ts,.tsx' + inputs: + - '@group(sources)' + - '.eslintrc.js' + + lint-fix: + extends: 'lint' + args: '--fix' + options: + runInCI: false + + typecheck: + command: 'tsc --noEmit' + inputs: + - '@group(sources)' + - '@group(configs)' + + codegen: + command: 'graphql-codegen' + outputs: + - 'src/generated/' + options: + internal: true + cache: 'local' + + e2e: + command: 'playwright test' + inputs: + - 'e2e/**/*' + - 'playwright.config.ts' + deps: + - target: '~:build' + env: + NODE_ENV: 'test' + options: + interactive: true + runInCI: 'always' + timeout: 600 + retryCount: 2 + + deploy: + command: './scripts/deploy.sh' + deps: + - '~:build' + - '~:test' + - '~:e2e' + options: + runInCI: 'only' + mutex: 'deployment' diff --git a/.agents/skills/moon/examples/workspace.yml b/.agents/skills/moon/examples/workspace.yml new file mode 100644 index 0000000..69d6df4 --- /dev/null +++ b/.agents/skills/moon/examples/workspace.yml @@ -0,0 +1,67 @@ +# .moon/workspace.yml - Complete example (v2 format) +$schema: 'https://moonrepo.dev/schemas/workspace.json' + +# Project discovery +projects: + - 'apps/*' + - 'packages/*' + - 'tools/*' + +# Version control +vcs: + client: 'git' # v2: 'manager' renamed to 'client' + provider: 'github' + defaultBranch: 'main' + remoteCandidates: + - 'origin' + - 'upstream' + hooks: + pre-commit: + - 'moon run :lint --affected --status staged' + pre-push: + - 'moon run :test --affected' + +# Task pipeline (v2: 'runner' renamed to 'pipeline') +pipeline: + archivableTargets: + - ':build' + - ':test' + cacheLifetime: '7 days' + inheritColorsForPipedTasks: true + logRunningCommand: true + autoCleanCache: true + +# Hashing +hasher: + optimization: 'performance' + walkStrategy: 'vcs' + +# Code ownership +codeowners: + globalPaths: + '/*': ['@platform-team'] + orderBy: 'project-source' + sync: true # v2: 'syncOnRun' renamed to 'sync' + +# Constraints +constraints: + enforceProjectTypeRelationships: true + tagRelationships: + frontend: + requires: ['shared'] + backend: + requires: ['shared'] + +# Code generation +generator: + templates: + - './templates' + +# Remote caching (optional) +# remote: # v2: 'unstable_remote' renamed to 'remote' +# host: 'grpcs://cache.example.com' +# auth: +# token: 'CACHE_TOKEN' + +# Telemetry +telemetry: true diff --git a/.agents/skills/moon/references/cli-reference.md b/.agents/skills/moon/references/cli-reference.md new file mode 100644 index 0000000..5e03886 --- /dev/null +++ b/.agents/skills/moon/references/cli-reference.md @@ -0,0 +1,222 @@ +# Moon CLI Reference + +Complete reference for all moon CLI commands. + +## Task Execution + +### moon run + +Execute targets and their dependencies. + +```bash +moon run ... [-- ] +``` + +**Options:** + +| Flag | Description | +| ---------------------- | ------------------------------- | +| `--affected` | Only run if affected by changes | +| `--dependents` | Also run downstream dependents | +| `--force` | Bypass cache | +| `--interactive`, `-i` | Interactive task selection | +| `--no-bail` | Continue on failure | +| `--query ` | Filter with MQL | +| `--remote` | Compare against remote | +| `--status ` | Filter by status | +| `--summary` | Show execution summary | +| `--update-cache`, `-u` | Force cache update | + +**Examples:** + +```bash +moon run app:build +moon run :lint --affected +moon run '#frontend:test' +moon run app:test -- --coverage +moon run :build --query "language=typescript" +``` + +### moon check + +Run all build/test tasks for projects. + +```bash +moon check [project...] +moon check --all +``` + +### moon ci + +CI-optimized task execution with job distribution. + +```bash +moon ci [target...] +``` + +**Options:** + +| Flag | Description | +| --------------------- | ----------------------- | +| `--base ` | Base to compare against | +| `--head ` | Head revision | +| `--job ` | Job index (0-based) | +| `--job-total ` | Total parallel jobs | + +**Examples:** + +```bash +moon ci :build :test +moon ci :test --job 0 --job-total 4 +moon ci --base origin/main --head HEAD +``` + +## Query Commands + +### moon query projects + +```bash +moon query projects [mql] +moon query projects --affected +moon query projects --tags frontend +moon query projects "language=typescript" +``` + +### moon query tasks + +```bash +moon query tasks [mql] +moon query tasks --affected +moon query tasks "task~dev-*" +``` + +### moon query touched-files + +```bash +moon query touched-files +moon query touched-files --status modified,staged +moon query touched-files --base main --head HEAD +``` + +### moon query hash + +```bash +moon query hash +moon query hash-diff +``` + +## Graph Visualization + +### moon project-graph + +```bash +moon project-graph [project] +moon project-graph --dot > graph.dot +moon project-graph app --dependents +``` + +### moon action-graph + +```bash +moon action-graph [target] +moon action-graph app:build --dot +``` + +## Workspace Management + +### moon init + +```bash +moon init +moon init node +moon init --minimal +moon init --to ./app +``` + +### moon sync + +```bash +moon sync projects # Sync all projects +moon sync hooks # Sync VCS hooks +``` + +### moon setup + +```bash +moon setup # Install toolchain +``` + +### moon generate + +```bash +moon generate