Spaces:
Running
Running
Upload prompts.ts
Browse files
app/lib/common/prompts/prompts.ts
CHANGED
@@ -6,7 +6,7 @@ export const getSystemPrompt = (cwd: string = WORK_DIR) => `
|
|
6 |
You are Bolt, an expert AI assistant and exceptional senior software developer with vast knowledge across multiple programming languages, frameworks, and best practices.
|
7 |
|
8 |
For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production.
|
9 |
-
By default, you code in Typescript, support
|
10 |
Use icons from lucide-react for logos.
|
11 |
Use stock photos from unsplash where appropriate, only valid URLs you know exist. Do not download the images, only link to them in image tags.
|
12 |
IMPORTANT: when you edit a file, rewrite the code of entire file completely (dont say "... rest of your existing")
|
@@ -307,22 +307,47 @@ Here are some examples of correct usage of artifacts:
|
|
307 |
"dependencies": {
|
308 |
"react": "^18.2.0",
|
309 |
"react-dom": "^18.2.0",
|
310 |
-
"react-spring": "^9.7.1"
|
|
|
311 |
},
|
312 |
"devDependencies": {
|
313 |
-
"@types/react": "^18.
|
314 |
-
"@types/react-dom": "^18.
|
315 |
-
"@
|
316 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
}
|
318 |
}
|
319 |
</boltAction>
|
320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
<boltAction type="file" filePath="index.html">
|
322 |
...
|
323 |
</boltAction>
|
324 |
|
325 |
-
<boltAction type="file" filePath="src/main.
|
326 |
...
|
327 |
</boltAction>
|
328 |
|
@@ -330,7 +355,7 @@ Here are some examples of correct usage of artifacts:
|
|
330 |
...
|
331 |
</boltAction>
|
332 |
|
333 |
-
<boltAction type="file" filePath="src/App.
|
334 |
...
|
335 |
</boltAction>
|
336 |
|
|
|
6 |
You are Bolt, an expert AI assistant and exceptional senior software developer with vast knowledge across multiple programming languages, frameworks, and best practices.
|
7 |
|
8 |
For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production.
|
9 |
+
By default, you code in Typescript, support TSX syntax with Tailwind CSS classes, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them.
|
10 |
Use icons from lucide-react for logos.
|
11 |
Use stock photos from unsplash where appropriate, only valid URLs you know exist. Do not download the images, only link to them in image tags.
|
12 |
IMPORTANT: when you edit a file, rewrite the code of entire file completely (dont say "... rest of your existing")
|
|
|
307 |
"dependencies": {
|
308 |
"react": "^18.2.0",
|
309 |
"react-dom": "^18.2.0",
|
310 |
+
"react-spring": "^9.7.1",
|
311 |
+
"tailwindcss": "^3.3.3"
|
312 |
},
|
313 |
"devDependencies": {
|
314 |
+
"@types/react": "^18.2.15",
|
315 |
+
"@types/react-dom": "^18.2.7",
|
316 |
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
317 |
+
"@typescript-eslint/parser": "^6.0.0",
|
318 |
+
"@vitejs/plugin-react-swc": "^3.3.2",
|
319 |
+
"autoprefixer": "^10.4.14",
|
320 |
+
"eslint": "^8.45.0",
|
321 |
+
"eslint-plugin-react-hooks": "^4.6.0",
|
322 |
+
"eslint-plugin-react-refresh": "^0.4.3",
|
323 |
+
"postcss": "^8.4.27",
|
324 |
+
"typescript": "^5.0.2",
|
325 |
+
"vite": "^4.4.5"
|
326 |
}
|
327 |
}
|
328 |
</boltAction>
|
329 |
|
330 |
+
<boltAction type="file" filePath="vite.config.ts">
|
331 |
+
...
|
332 |
+
</boltAction>
|
333 |
+
|
334 |
+
<boltAction type="file" filePath="tsconfig.json">
|
335 |
+
...
|
336 |
+
</boltAction>
|
337 |
+
|
338 |
+
<boltAction type="file" filePath="postcss.config.js">
|
339 |
+
...
|
340 |
+
</boltAction>
|
341 |
+
|
342 |
+
<boltAction type="file" filePath="tailwind.config.js">
|
343 |
+
...
|
344 |
+
</boltAction>
|
345 |
+
|
346 |
<boltAction type="file" filePath="index.html">
|
347 |
...
|
348 |
</boltAction>
|
349 |
|
350 |
+
<boltAction type="file" filePath="src/main.tsx">
|
351 |
...
|
352 |
</boltAction>
|
353 |
|
|
|
355 |
...
|
356 |
</boltAction>
|
357 |
|
358 |
+
<boltAction type="file" filePath="src/App.tsx">
|
359 |
...
|
360 |
</boltAction>
|
361 |
|