Skip to content

feat: scaffold Marketplace app via sm CLI#123

Draft
antosubash wants to merge 2 commits intomainfrom
claude/setup-marketplace-scaffold-184b2
Draft

feat: scaffold Marketplace app via sm CLI#123
antosubash wants to merge 2 commits intomainfrom
claude/setup-marketplace-scaffold-184b2

Conversation

@antosubash
Copy link
Copy Markdown
Owner

Summary

  • Installed SimpleModule.Cli as a local dotnet tool from nuget.org (added to .config/dotnet-tools.json alongside csharpier).
  • Scaffolded a standalone app into marketplace/ via dotnet sm new project Marketplace, then renamed the folder to lowercase. The app has its own Marketplace.slnx, package.json, nuget.config, and npm workspace — fully separate from the framework repo.
  • Framework packages (SimpleModule.Core/.Database/.Hosting/.Generator) are pinned at 0.0.33 (latest published on nuget.org at scaffold time) and restore cleanly from nuget.org.

Post-scaffold adjustments

A few fixes were needed to make the scaffold build cleanly while living inside this repo:

  • marketplace/src/Marketplace.Host/Styles/app.css — rewrote imports/globs. The CLI template assumes a repo-root modules/ layout (../../../../modules/**) and a local packages/ folder. Corrected to resolve @simplemodule/theme-default/theme.css and the UI/client sources from node_modules, and to scan this app's own src/modules/**.
  • marketplace/package.json — added @tailwindcss/cli devDependency. The SimpleModule.Hosting MSBuild target shells out to node_modules/.bin/tailwindcss, which the CLI template forgot to include.
  • marketplace/nuget.config — stripped the auto-added SimpleModule-Local feed (points to a path that doesn't exist when we're only using nuget.org). Left only nuget.org with <clear />.
  • marketplace/Directory.Build.targets — empty <Project /> file so MSBuild doesn't walk up and inherit the outer repo's targets.
  • marketplace/biome.json — set "root": false so Biome doesn't error on nested root configs.
  • marketplace/.gitignore — ignore wwwroot/{js,css/app.css} and Styles/_scan/ build outputs.

Test plan

  • dotnet tool restore — installs sm locally
  • cd marketplace && dotnet restore — restores framework packages 0.0.33 from nuget.org
  • dotnet build -c Debug — builds clean (0 warnings, 0 errors) incl. Tailwind + Vite
  • npm install — resolves @simplemodule/* via file: links to the outer repo's packages/
  • dotnet run --project src/Marketplace.Host — browse https://localhost:5001 and confirm the Inertia Welcome page renders (run locally; not exercised in this branch)

Generated by Claude Code

claude added 2 commits April 24, 2026 20:05
Standalone SimpleModule app under marketplace/ with its own solution,
package.json, and nuget.config pointing at nuget.org. Framework packages
(SimpleModule.Core/.Database/.Hosting/.Generator) pinned at 0.0.33.

Post-scaffold adjustments for living inside the SimpleModule monorepo:
- Fixed Styles/app.css to resolve theme and source globs via node_modules
  and src/modules (the CLI template assumes a repo-root modules layout).
- Added @tailwindcss/cli devDependency (required by SimpleModule.Hosting
  MSBuild target but missing from the CLI template).
- Overrode nuget.config to nuget.org only (the CLI auto-adds an unused
  SimpleModule-Local feed when run inside the framework repo).
- Added empty Directory.Build.targets to stop MSBuild inheriting the
  outer repo's targets.
- Set "root": false in biome.json since the outer repo already has a
  Biome root config.
- Local .gitignore for tailwind/vite build outputs.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying simplemodule-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: e930633
Status: ✅  Deploy successful!
Preview URL: https://8f879c44.simplemodule-website.pages.dev
Branch Preview URL: https://claude-setup-marketplace-sca.simplemodule-website.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants