@codapult/create
v0.1.10
Published
Scaffold a new Codapult SaaS project
Maintainers
Readme
@codapult/create
Scaffold a new Codapult SaaS project.
Usage
# npm
npx @codapult/create my-app
# pnpm
pnpm create @codapult my-app
# yarn
yarn create @codapult my-app
# bun
bunx @codapult/create my-appThe project creator will:
- Shallow-clone the latest Codapult template from GitHub without its history
- Run the interactive setup wizard (choose auth, payments, storage, modules)
- Install dependencies
The setup wizard is already part of this command. You do not need to run
npx @codapult/cli setup immediately afterwards. Run that command later only
if you cloned or downloaded the template manually and need to reconfigure it.
The template is delivered through a private GitHub repository. Accept the
repository invitation and configure GitHub authentication (SSH, Git Credential
Manager, or another Git credential helper) before running the creator. The
cloned .git directory is removed after scaffolding, so the generated project
starts without Codapult history or remote configuration.
Development
pnpm install
pnpm run build # compile TypeScript
pnpm test # run unit tests
pnpm lint # lint
pnpm typecheck # type-check without emittingTest locally after building:
node dist/index.js my-test-appReleasing
Releases are managed with release-it. The workflow:
- Run the release command on the
mainbranch:
pnpm run release # interactive — prompts for version bump type
pnpm run release -- patch # non-interactive patch bump (0.1.0 → 0.1.1)
pnpm run release -- minor # minor bump (0.1.0 → 0.2.0)
pnpm run release -- major # major bump (0.1.0 → 1.0.0)release-itwill automatically:- Run pre-release checks (lint, typecheck, test)
- Bump the version in
package.json - Update
CHANGELOG.mdfrom Conventional Commits - Commit the changes (
chore: release v<version>) - Create a Git tag (
v<version>) - Push the commit and tag to
origin
The
v*tag push triggers the Publish GitHub Actions workflow, which builds and publishes the package to npm.
Dry run
Preview what a release would do without making any changes:
pnpm run release -- --dry-runPrerequisites
- npm trusted publishing must be configured for the
@codapult/createpackage on npmjs.com. - Commit messages should follow Conventional Commits for meaningful changelogs (e.g.
feat:,fix:,chore:).
