|
1 | 1 | # Agents - cssnr-vue (cssnr.github.io) |
2 | 2 |
|
| 3 | +Before answering any question that involves facts about ANYTHING, you MUST output at least one Read, WebFetch, or WebSearch tool call. |
| 4 | +If your first output is text instead of a tool call, you have failed. |
| 5 | + |
3 | 6 | Vue 3 SPA — GitHub Pages org site showcasing CSSNR projects. |
4 | 7 |
|
5 | 8 | Production Site: https://cssnr.github.io/ |
6 | 9 |
|
7 | 10 | ## Commands |
8 | 11 |
|
9 | | -| Command | Action | |
10 | | -| ------------------------ | ---------------------------------- | |
11 | | -| `npm run dev` | Dev server at localhost:5173 | |
12 | | -| `npm run tsc` | TypeScript check `vue-tsc --build` | |
13 | | -| `npm run build` | `tsc` then `vite-ssg build` | |
14 | | -| `npm run lint` | ESLint Write `--cache --fix` | |
15 | | -| `npm run lint:check` | ESLint Check | |
16 | | -| `npm run prettier` | Prettier Write | |
17 | | -| `npm run prettier:check` | Prettier Check | |
18 | | - |
19 | | -Run `lint` before `tsc` before `build`. No test framework exists. |
20 | | - |
21 | | -## Config & formatting |
22 | | - |
23 | | -- ESLint: flat config at `eslint.config.ts` (ESLint 10) |
24 | | -- Prettier: `.prettierrc.json` — no semis, single quotes, `.vue` printWidth 120, `.js` tabWidth 4 |
25 | | -- Lint CI checks: `lint:check` + `prettier:check` + yamllint + actionlint |
26 | | -- Path alias `@/` → `src/` |
27 | | - |
28 | | -| Script | Command | |
29 | | -| ---------- | ------------------------------------- | |
30 | | -| yamllint | `yamllint -c .github/yamllint.yaml .` | |
31 | | -| actionlint | `actionlint` | |
| 12 | +| Command | Action | |
| 13 | +| -------------------- | ---------------------------------- | |
| 14 | +| `npm run dev` | Dev server at localhost:5173 | |
| 15 | +| `npm run tsc` | TypeScript check `vue-tsc --build` | |
| 16 | +| `npm run build` | `tsc` then `vite-ssg build` | |
| 17 | +| `npm run lint` | ESLint Write `--cache --fix` | |
| 18 | +| `npm run lint:check` | ESLint Check | |
| 19 | +| `npm run prettier` | ALWAYS RUN AFTER EDITING FILES | |
32 | 20 |
|
33 | 21 | ## Architecture |
34 | 22 |
|
35 | 23 | - `src/config/apps.ts` — list of apps |
36 | 24 | - `src/router/index.ts` — vue router |
| 25 | +- `src/components` - Vue Components |
| 26 | +- `src/views` - Main Views (Pages) |
37 | 27 |
|
38 | | -## Environment |
39 | | - |
40 | | -Copy `.env` from the template (not committed). Vars are `VITE_TITLE`, `VITE_*_URL`, etc. Injected via `%VITE_TITLE%` in `index.html` and `import.meta.env.VITE_*` in code. |
41 | | - |
42 | | -## CI |
| 28 | +## Frameworks |
43 | 29 |
|
44 | | -Workflows in: `.github/workflows` |
| 30 | +- Bootstrap 5.3 |
| 31 | +- Fontawesome |
| 32 | +- Animate.css |
| 33 | +- AOS (Animate On Scroll) |
45 | 34 |
|
46 | | -- `pages.yaml`: push to `master` → npm build → deploy to GitHub Pages |
47 | | -- `preview.yaml`: push non-master → npm build → deploy to `https://dev-static.cssnr.com/` |
48 | | -- `lint.yaml`: push/PR to master → lint check |
49 | | - |
50 | | -## Notes |
| 35 | +## Environment |
51 | 36 |
|
52 | | -- Node: `^20.19.0 || >=22.12.0`, package manager: npm |
53 | | -- `src/config/**` marked `linguist-vendored` in `.gitattributes` |
54 | | -- `vite.config.ts` sets `server.allowedHosts: true` and `base` is unset (default `/` for GitHub Pages) |
| 37 | +Copy `.env` from the template (not committed). Vars are `VITE_TITLE`, `VITE_*_URL`, etc. Injected via `%VITE_TITLE%` in `index.html` and `import.meta.env.VITE_*` in code. |
0 commit comments