A custom create-next-app cli tool to quickly bootstrap Next.js applications with the tools, patterns and best practices I follow.
npx create-nhollas-app@latest <project-name>
--use-npm
- Explicitly tell the CLI to bootstrap the application using npm.--use-pnpm
- Explicitly tell the CLI to bootstrap the application using pnpm.
Pushing changes to the main
branch will trigger the ci.yml
GitHub action which will:
- Use the CLI to create a templated project.
- Run the tests in the newly created project.
- It will then deploy the project to Vercel.
To publish a new package version of create-nhollas-app
:
- Ensure all your changes are merged to the main branch
- Go to the GitHub repository release page here
- Click "Draft a new release"
- Give it a title and describe the changes
- Create a new tag using semantic versioning (e.g.,
1.2.0
) - Publish the release
This will trigger the publish.yml
GitHub action which will:
- Sets up a Node.js environment
- Installs all dependencies
- Extracts the version number from your release tag
- Updates the package.json version to match
- Builds the package via the prepublishOnly script
- Publishes the new version to npm