Skill Creation Demo for Preact-vite @rodydavis#301
Open
RamyaPothankar wants to merge 3 commits intofirebase-studio:mainfrom
Open
Skill Creation Demo for Preact-vite @rodydavis#301RamyaPothankar wants to merge 3 commits intofirebase-studio:mainfrom
RamyaPothankar wants to merge 3 commits intofirebase-studio:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds create-preact-vite, a new skill designed to automate the process of starting a new Preact project with Vite. The main goal is to simplify the initial setup for developers by managing dependencies and generating the necessary boilerplate, providing a seamless start with a single command.
Here's what it does:
Handles Node.js Installation: It comes with scripts that check for Node.js on the user's machine. If it's missing, the skill automatically installs the correct version for their OS, preventing common setup issues.
Generates a Starter Project: The skill uses npm create vite@latest to create a standard project directory, sets up a package.json, adds Preact as a dependency, and includes a basic index.html and src directory with a sample component, giving developers a functional site from the very beginning. It also allows the user to choose between JavaScript and TypeScript.
Enhances AI Assistance: It also configures a local preact.md file, which primes the AI to act as a Preact specialist. This allows the AI to offer more intelligent and relevant support for tasks specific to Preact, like working with Preact's hooks, managing state, and leveraging Vite's features for a rapid development workflow.