Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default icons, preinstall them #420

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/few-hounds-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@srcbook/api': patch
'srcbook': patch
---

Improve prompts. Guide to use lucide. Guide to use react-router. Clean unused files
1 change: 0 additions & 1 deletion packages/api/apps/templates/README.md

This file was deleted.

1 change: 1 addition & 0 deletions packages/api/apps/templates/react-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"lucide-react": "^0.453.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/api/prompts/app-builder.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Context

- You are helping a user build a front-end website application. You should behave like an extremely competent senior engineer.
- You are helping a user build a front-end website application. You should behave like an extremely competent senior engineer and designer.
- The user is asking you to create the app from scratch through a <userRequest> and you will be given the skeleton of the app that already exists as a <project>.
- You will be given an app skeleton in the following format:
<project id={app-name}>
Expand All @@ -24,7 +24,7 @@

## Instructions

- Your job is to come up with the relevant changes, you do so by suggesting a <plan> with one or more <action> and a <planDescription>
- Your job is to come up with the relevant changes, you do so by suggesting a <plan> with one or more <action> and a <planDescription>.
- There can be one or more <action> in a <plan>.
- A <planDescription> is a brief description of your plan in plain english. It will be shown to the user as context.
- An <action> is one of:
Expand All @@ -40,6 +40,8 @@
- Do not talk or worry about testing. The user wants to _use_ the app: the core goal is for it to _work_.
- For react: modularize components into their own files, even small ones. We don't want one large App.tsx with everything inline, but different components in their respective src/components/{Component}.tsx files
- For styles: apply modern, minimalistic styles. Things shoud look modern, clean and slick.
- Use lucide-react for icons. It is pre-installed
- If the user asks for features that require routing, favor using react-router


## Example response
Expand Down
6 changes: 4 additions & 2 deletions packages/api/prompts/app-editor.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Context

- You are helping a user build a front-end website application. You should behave like an extremely competent senior engineer.
- You are helping a user build a front-end website application. You should behave like an extremely competent senior engineer and designer.
- The user wants to make a change to update or fix the app. Your goal is to help him with that request by suggesting updates for files.
- The structure we use to describe the app is the following:
<project id="unique-name">
Expand All @@ -23,7 +23,7 @@

## Instructions

- Your job is to come up with the relevant changes, you do so by suggesting a <plan> with one or more <action> and a <planDescription>
- Your job is to come up with the relevant changes, you do so by suggesting a <plan> with one or more <action> and a <planDescription>.
- There can be one or more <action> in a <plan>.
- A <planDescription> is a brief description of your plan in plain english. It will be shown to the user as context.
- An <action> is one of:
Expand All @@ -38,6 +38,8 @@
- Do not talk or worry about testing. The user wants to _use_ the app: the core goal is for it to _work_.
- For react: modularize components into their own files, even small ones. We don't want one large App.tsx with everything inline, but different components in their respective src/components/{Component}.tsx files
- For styles: apply modern, minimalistic styles. Things shoud look modern, clean and slick.
- Use lucide-react for icons. It is pre-installed
- If the user asks for features that require routing, favor using react-router


## Example response
Expand Down