create-surf-app 1.0.0-alpha.4 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BV3XIPFM.js → chunk-FDATV75D.js} +2 -8
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/default/CLAUDE.md +20 -0
- package/dist/templates/default/backend/package.json +1 -1
- package/dist/templates/default/package.json +2 -2
- package/dist/templates/nextjs/package.json +1 -1
- package/package.json +1 -1
|
@@ -33,14 +33,8 @@ Done! Next steps:
|
|
|
33
33
|
Done! Next steps:
|
|
34
34
|
|
|
35
35
|
cd ${name}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Start backend
|
|
40
|
-
cd backend && npm run dev &
|
|
41
|
-
|
|
42
|
-
# Start frontend
|
|
43
|
-
cd frontend && npm run dev
|
|
36
|
+
npm install
|
|
37
|
+
npm run dev
|
|
44
38
|
|
|
45
39
|
Open the local URL printed by Vite
|
|
46
40
|
`);
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -88,3 +88,23 @@ The agent can also call `POST /api/__sync-schema` explicitly after editing.
|
|
|
88
88
|
- Do not bypass your backend routes from the frontend
|
|
89
89
|
- Frontend packages are pre-installed - check `package.json` before installing
|
|
90
90
|
- Default to a dark theme unless the user explicitly asks for a different visual direction.
|
|
91
|
+
|
|
92
|
+
## Design
|
|
93
|
+
|
|
94
|
+
### Avoid AI-default patterns
|
|
95
|
+
- No colored icon boxes next to metrics (the blue-bg-with-icon KPI pattern)
|
|
96
|
+
- No gradient avatar circles with initials
|
|
97
|
+
- No "Built with React · Tailwind" footers
|
|
98
|
+
- No AI copywriting: "Elevate", "Seamless", "Unleash", "Delve", "Next-Gen"
|
|
99
|
+
- No "Oops!" error messages — be direct ("Failed to load. Try again.")
|
|
100
|
+
- No round placeholder numbers ($100.00) — use realistic data ($847.29)
|
|
101
|
+
- Sentence case on headings, not Title Case On Every Word
|
|
102
|
+
- Icons should aid scanning, not decorate — omit when the label is clear
|
|
103
|
+
|
|
104
|
+
### ECharts
|
|
105
|
+
- Flat style: show primary axis line, dashed split lines, transparent chart bg
|
|
106
|
+
- Custom tooltip formatter with dash indicators (12×2.5px bars, not default circle dots)
|
|
107
|
+
- Legend: type "plain", icon "roundRect", itemWidth 12, itemHeight 3
|
|
108
|
+
- Prefer timeframe tabs (7D/30D/90D/1Y/All) over dataZoom for time series
|
|
109
|
+
- Default to theme visualizer palette; override when semantics demand it (red/green for gain/loss, sequential scales for heatmaps)
|
|
110
|
+
- Dark mode: parameterize tooltip bg, axis colors, split line colors via resolvedTheme
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "surf-app",
|
|
3
3
|
"private": true,
|
|
4
|
+
"workspaces": ["backend", "frontend"],
|
|
4
5
|
"scripts": {
|
|
5
|
-
"dev": "concurrently \"npm run dev --
|
|
6
|
-
"install:all": "cd backend && npm install && cd ../frontend && npm install"
|
|
6
|
+
"dev": "concurrently \"npm run dev --workspace backend\" \"npm run dev --workspace frontend\""
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"concurrently": "^9.0.0"
|