Welcome to create-bsmnt-app
, the CLI tool designed to kickstart your project with the Basement team's stack, honed from years of experience in creating outstanding websites. This tool provides an opinionated yet customizable starter for Next.js applications, integrating the tools and libraries we trust and recommend.
To create a new project, run:
npx create-bsmnt-app <project-name>
During the setup, you will be prompted to choose various options to tailor the project to your needs:
Add Tailwind CSS for styling.
Integrate with BaseHub CMS, our preferred content management system.
See BaseHub docs for more info.
Choose between Next.js pages router or app router.
Include libraries and setup necessary for working with Three.js and related tools:
three
@react-three/drei
@react-three/fiber
leva
three-stdlib
- Git Repository: Initialize a Git repository for version control.
- NPM Install: Automatically install NPM packages.
- Import Alias: Modify the import alias, default is "~/".
Alternatively, you can bypass the interactive prompts and use flags to directly specify your preferences:
Flag | Description |
---|---|
--tailwind |
Include Tailwind CSS. Accepts true or false . |
--basehub |
Integrate BaseHub CMS. Accepts true or false . |
--app-router |
Use a custom app router instead of Next.js pages router. |
--creative-stack |
Include the creative stack for Three.js development. |
--no-git |
Skip initializing a Git repository. |
--no-install |
Skip automatic NPM package installation. |
npx create-bsmnt-app my-next-app --tailwind=true --basehub=true --app-router=true --creative-stack=true --no-git