Include dev environment in slug init #199

Closed
opened 2026-06-24 09:33:45 -05:00 by erik · 3 comments
Owner

Goal

Include the Overmind dev environment in slug init so future developers can more easily make changes to the deployed website.

Requirements

  • Add dev environment scaffolding to the slug init output.
  • Include the Overmind-based setup needed to run and work on the website locally.
  • Ensure generated files are appropriate for the website project created by slug init.

Acceptance criteria

  • Running slug init creates the dev environment files for the website.
  • The generated dev environment supports local development with Overmind.
  • Future developers can use the generated setup to make website changes more easily.

Dependencies

  • None
## Goal Include the Overmind dev environment in `slug init` so future developers can more easily make changes to the deployed website. ## Requirements - Add dev environment scaffolding to the `slug init` output. - Include the Overmind-based setup needed to run and work on the website locally. - Ensure generated files are appropriate for the website project created by `slug init`. ## Acceptance criteria - [ ] Running `slug init` creates the dev environment files for the website. - [ ] The generated dev environment supports local development with Overmind. - [ ] Future developers can use the generated setup to make website changes more easily. ## Dependencies - None
Author
Owner

Synced from todu comment by @todu on 2026-06-24T15:00:54.298Z

PR review completed for slugkit PR #200.

Result: approved

Acceptance criteria: 3/3 met, 0 missing.

Verification:

  • Reviewed task scope, PR body, and diff for generated-site Overmind dev environment support.
  • Confirmed slug init output now includes Makefile and Procfile.dev from the template.
  • Confirmed generated dev commands are standalone-site appropriate and avoid repository template/site paths.
  • Confirmed template package scripts and tsconfig.json no longer depend on repository-relative config paths, so generated sites are more suitable for local website changes.
  • Local targeted CLI test passed: npm exec --workspace @evcraddock/slug-cli -- vitest run --config ../vitest.config.ts src/__tests__/commands.test.ts.
  • Local template verification passed: npm run build --workspace @slugkit/template-site && npm test --workspace @slugkit/template-site.
  • Local full gate passed: ./scripts/pre-pr.sh.
  • Forgejo Actions #280 succeeded for commit 566392b (build-lint-test, pull_request).

Blocking issues: none.
Warnings: none.

Merge gate: waiting for explicit human approval.

_Synced from todu comment by @todu on 2026-06-24T15:00:54.298Z_ PR review completed for slugkit PR #200. Result: approved Acceptance criteria: 3/3 met, 0 missing. Verification: - Reviewed task scope, PR body, and diff for generated-site Overmind dev environment support. - Confirmed `slug init` output now includes `Makefile` and `Procfile.dev` from the template. - Confirmed generated dev commands are standalone-site appropriate and avoid repository `template/site` paths. - Confirmed template package scripts and `tsconfig.json` no longer depend on repository-relative config paths, so generated sites are more suitable for local website changes. - Local targeted CLI test passed: `npm exec --workspace @evcraddock/slug-cli -- vitest run --config ../vitest.config.ts src/__tests__/commands.test.ts`. - Local template verification passed: `npm run build --workspace @slugkit/template-site && npm test --workspace @slugkit/template-site`. - Local full gate passed: `./scripts/pre-pr.sh`. - Forgejo Actions #280 succeeded for commit `566392b` (`build-lint-test`, pull_request). Blocking issues: none. Warnings: none. Merge gate: waiting for explicit human approval.
erik 2026-06-24 13:09:30 -05:00
Author
Owner

Synced from todu comment by @todu on 2026-06-24T18:08:29.821Z

Completed and merged in slugkit PR #200.

Acceptance criteria: 3/3 met.

Evidence:

  • slug init now generates website dev environment files: Makefile, Procfile.dev, and standalone vitest.config.ts.
  • Generated make dev starts the Overmind app and CSS watcher processes, and make dev-stop stops them.
  • Generated sites include standalone TypeScript/Vitest config and dependencies so future developers can run local checks without relying on the Slugkit toolkit repository.
  • Toolkit-only tests are excluded from generated site projects while remaining in Slugkit itself.
  • Manual generated-site smoke passed at /Users/erik/Private/code/forgejo/my-site: npm install, npm run db:migrate, npm run build, npm test (41 files, 263 tests), and make dev/make dev-stop.
  • Local full gate passed: ./scripts/pre-pr.sh.
  • Forgejo Actions #281 passed.
  • PR #200 merged into main, local main fast-forwarded, and the local feature branch was deleted.
_Synced from todu comment by @todu on 2026-06-24T18:08:29.821Z_ Completed and merged in slugkit PR #200. Acceptance criteria: 3/3 met. Evidence: - `slug init` now generates website dev environment files: `Makefile`, `Procfile.dev`, and standalone `vitest.config.ts`. - Generated `make dev` starts the Overmind app and CSS watcher processes, and `make dev-stop` stops them. - Generated sites include standalone TypeScript/Vitest config and dependencies so future developers can run local checks without relying on the Slugkit toolkit repository. - Toolkit-only tests are excluded from generated site projects while remaining in Slugkit itself. - Manual generated-site smoke passed at `/Users/erik/Private/code/forgejo/my-site`: `npm install`, `npm run db:migrate`, `npm run build`, `npm test` (41 files, 263 tests), and `make dev`/`make dev-stop`. - Local full gate passed: `./scripts/pre-pr.sh`. - Forgejo Actions #281 passed. - PR #200 merged into `main`, local `main` fast-forwarded, and the local feature branch was deleted.
Author
Owner

Synced from todu comment by @todu on 2026-06-24T18:04:55.368Z

PR review completed for slugkit PR #200 after update d471b86.

Result: approved

Acceptance criteria: 3/3 met, 0 missing.

Verification:

  • Reviewed updated PR diff and commit d471b86.
  • Confirmed slug init output includes generated-site Makefile, Procfile.dev, and standalone vitest.config.ts.
  • Confirmed generated dev commands are standalone-site appropriate and avoid repository template/site paths.
  • Confirmed generated sites deliberately exclude toolkit-only tests while Slugkit itself keeps them:
    • src/__tests__/dev-environment.test.ts
    • src/federation/__tests__/follow.test.ts
  • Confirmed generated sites include standalone TypeScript/Vitest dev dependencies and no longer inherit repository-relative TypeScript/Vitest config.
  • Local targeted CLI/template tests passed: npm exec --workspace @evcraddock/slug-cli -- vitest run --config ../vitest.config.ts src/__tests__/commands.test.ts src/__tests__/template-package-script.test.ts and npm exec --workspace @slugkit/template-site -- vitest run --config ./vitest.config.ts src/__tests__/dev-environment.test.ts src/federation/__tests__/follow.test.ts src/api/__tests__/comments.test.ts.
  • Manual generated-site smoke passed at /Users/erik/Private/code/forgejo/my-site: npm install, npm run db:migrate, npm run build, npm test (41 files, 263 tests), and make dev/make dev-stop.
  • Local full gate passed: ./scripts/pre-pr.sh.
  • Forgejo Actions #281 succeeded for commit d471b86 (build-lint-test, pull_request).

Blocking issues: none.
Warnings: none.

Merge gate: waiting for explicit human approval.

_Synced from todu comment by @todu on 2026-06-24T18:04:55.368Z_ PR review completed for slugkit PR #200 after update `d471b86`. Result: approved Acceptance criteria: 3/3 met, 0 missing. Verification: - Reviewed updated PR diff and commit `d471b86`. - Confirmed `slug init` output includes generated-site `Makefile`, `Procfile.dev`, and standalone `vitest.config.ts`. - Confirmed generated dev commands are standalone-site appropriate and avoid repository `template/site` paths. - Confirmed generated sites deliberately exclude toolkit-only tests while Slugkit itself keeps them: - `src/__tests__/dev-environment.test.ts` - `src/federation/__tests__/follow.test.ts` - Confirmed generated sites include standalone TypeScript/Vitest dev dependencies and no longer inherit repository-relative TypeScript/Vitest config. - Local targeted CLI/template tests passed: `npm exec --workspace @evcraddock/slug-cli -- vitest run --config ../vitest.config.ts src/__tests__/commands.test.ts src/__tests__/template-package-script.test.ts` and `npm exec --workspace @slugkit/template-site -- vitest run --config ./vitest.config.ts src/__tests__/dev-environment.test.ts src/federation/__tests__/follow.test.ts src/api/__tests__/comments.test.ts`. - Manual generated-site smoke passed at `/Users/erik/Private/code/forgejo/my-site`: `npm install`, `npm run db:migrate`, `npm run build`, `npm test` (41 files, 263 tests), and `make dev`/`make dev-stop`. - Local full gate passed: `./scripts/pre-pr.sh`. - Forgejo Actions #281 succeeded for commit `d471b86` (`build-lint-test`, pull_request). Blocking issues: none. Warnings: none. Merge gate: waiting for explicit human approval.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
erik/slugkit#199
No description provided.