Skip to content

Commit fa269fc

Browse files
committed
Add Node environment setup and package management guidelines
1 parent 58159d3 commit fa269fc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.roo/rules/04-node-environment.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Node Environment Rules
2+
3+
## Development Server
4+
5+
- Always use `pnpm dev` to start the development server
6+
- Never use `pkill` to terminate processes; use proper shutdown methods instead
7+
- Always look up the port in the `.env` file for browser requests
8+
- Use `Ctrl+C` to gracefully stop the development server
9+
10+
## Environment Variables
11+
12+
- Store all configuration in the `.env` file
13+
- Reference the `.env` file for ports, API keys, and other configuration
14+
- Never hardcode ports or configuration values in code
15+
- Use environment variables for different environments (development, staging, production)
16+
17+
## Package Management
18+
19+
- Use `pnpm` as the package manager for all operations
20+
- Run `pnpm install` after pulling new changes
21+
- Use `pnpm add <package>` to add new dependencies
22+
- Use `pnpm add -D <package>` for development dependencies
23+
24+
## Process Management
25+
26+
- One development server instance per project
27+
- Check for running processes before starting new ones
28+
- Use proper shutdown signals to terminate processes
29+
- Monitor the terminal output for errors and warnings

0 commit comments

Comments
 (0)