This wizard sets up a development environment for a project, including checks for necessary tools and installation prompts. The focus is on quickly going from idea to publishable project.
-
Node.js Version Check:
- Executes
node -v
to get the current Node.js version. - If the version is less than 18.0, it displays a warning message.
- Executes
-
Tool Availability Checks:
- Supabase CLI: Checks if Supabase CLI is installed. If not, displays an installation guide.
- GitHub CLI: Checks for GitHub CLI installation. If missing, suggests installation steps.
- Docker (Optional): Checks for Docker if initializing a Supabase project.
- Prompts the user for various project settings including:
- Project name
- Use of OpenAI, @nuxt/ui, Nuxt Content
- Initialization of Supabase project
- Netlify setup, GitHub for environment setup
- Repository visibility
- Project license
-
Supabase Project Initialization:
- Checks for Docker.
- Initializes a Supabase project if requested.
-
Clone Template Repository:
- Clones a specific GitHub repository as a template for the new project.
-
Conditional File Deletion: Deletes
useOpenAi.js
if OpenAI is not needed. -
Package.json Update: Modifies the project's
package.json
to reflect chosen configurations.
- Installs NPM packages.
- Performs additional configurations and setups based on user input.
The script automates the process of setting up a new project environment, ensuring all necessary tools and configurations are in place.