ls # List files
ls -la # Long list incl. hidden files
cd <dir> # Change directory
pwd # Show current directory
mkdir <dir> # Create new directory
rm # Delete file
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
| --- | |
| globs: | |
| alwaysApply: true | |
| --- | |
| # Tooling (`uv` · `ty` · `ruff`) | |
| **Dependency management (use `uv` only):** | |
| ```bash |
- Write idiomatic Svelte 5 code, using modern best practices.
- Prefer concise, readable, and maintainable code.
- Always use TypeScript for new components and utilities.
- Add clear type annotations for all props and variables.
- Write components as function modules (not class-based).
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
| #!/usr/bin/env pwsh | |
| # Install necessary deps | |
| bun install tailwindcss postcss autoprefixer --save-dev | |
| # Init tailwind | |
| bunx tailwindcss init -p | |
| # Replace or add 'content' line in tailwind.config.js | |
| $tailwindConfig = "tailwind.config.js" |
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
| #!/bin/bash | |
| # Install necessary deps | |
| npm install -D tailwindcss postcss autoprefixer | |
| # Init tailwind | |
| npx tailwindcss init -p | |
| # Use sed to check if the content line exists and replace it or add it if it doesn't | |
| sed -i '/^\s*content:/c\ content: ["./src/**/*.{html,js,svelte,ts}"],' tailwind.config.js || sed -i '/^export default {/a\ content: ["./src/**/*.{html,js,svelte,ts}"],' tailwind.config.js |