Skip to content

[Setup] Project structure and core scaffolding #28

@huy1010

Description

@huy1010

Summary

Set up the initial project structure for js-template CLI scaffolding tool. This establishes the foundation for a Next.js + NestJS fullstack project generator.

Current State

The following directories and stub files

js-template/
├── src/
│   ├── cli.ts          # Entry point (stub)
│   ├── generator.ts    # Template copier (stub)
│   ├── addons.ts       # Addon registry (interface defined)
│   └── utils.ts        # Utilities (stub)
├── templates/
│   ├── frontend/       # Next.js template
│   ├── backend/        # NestJS template
├── addons/
│   ├── auth.ts         # JWT/OAuth addon (stub)
│   ├── database.ts     # Prisma addon (stub)
│   └── ci.ts           # CI addon (stub)
├── bin/
├── tests/
├── package.json
└── tsconfig.json

Tasks

  • Install core dependencies (typescript, tsx, vitest, inquirer/prompts, commander)
  • Configure TypeScript (tsconfig.json with proper paths)
  • Set up bin entry point (bin/cli.js)
  • Verify pnpm dev runs the CLI stub
  • Verify pnpm build compiles to dist/
  • Add basic test setup with vitest
  • Setup claude and agentic folders

Acceptance Criteria

  • pnpm install succeeds
  • pnpm dev prints "js-template" to console
  • pnpm build produces dist/ with compiled JS
  • pnpm test runs (even if no tests yet)
  • Project follows the architecture defined in CLAUDE.md

Related

This is the foundation for subsequent issues:

  • CLI interactive prompts
  • Template generation
  • Addon system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions