docs(quick-1): Create start.sh with development menu
- Interactive menu for dev, test, build, preview, lint, clean, install - Auto-installs dependencies if missing - Supports direct command-line arguments
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
---
|
||||
plan: 1
|
||||
type: quick
|
||||
files_modified:
|
||||
- start.sh
|
||||
---
|
||||
|
||||
<objective>
|
||||
Create a start.sh script in project root with interactive menu for common npm commands (test, dev, build, etc.)
|
||||
</objective>
|
||||
|
||||
<tasks>
|
||||
|
||||
<task>
|
||||
<name>Create start.sh with menu</name>
|
||||
<files>start.sh</files>
|
||||
<action>
|
||||
1. Create start.sh in project root with:
|
||||
- Interactive menu using select/case
|
||||
- Options: dev, test, build, preview, lint, clean
|
||||
- Clear descriptions for each option
|
||||
- Exit on any key to cancel
|
||||
2. Make script executable: chmod +x start.sh
|
||||
</action>
|
||||
<verify>ls -la start.sh && head -30 start.sh</verify>
|
||||
<done>start.sh created with executable permissions</done>
|
||||
</task>
|
||||
|
||||
</tasks>
|
||||
|
||||
<success_criteria>
|
||||
- start.sh exists and is executable
|
||||
- Menu shows at least 5 options
|
||||
- Running ./start.sh shows the menu
|
||||
</success_criteria>
|
||||
@@ -0,0 +1,44 @@
|
||||
# Quick Task 1 Summary - Create start.sh
|
||||
|
||||
**Task:** Create start.sh script with menu for test, dev, etc.
|
||||
**Date:** 2026-03-13
|
||||
**Status:** Complete
|
||||
|
||||
---
|
||||
|
||||
## Completed
|
||||
|
||||
### Task 1: Create start.sh with menu
|
||||
|
||||
- Created `start.sh` in project root
|
||||
- Made executable with `chmod +x`
|
||||
- Menu options:
|
||||
1. `dev` - Start development server
|
||||
2. `test` - Run tests
|
||||
3. `test:watch` - Run tests in watch mode
|
||||
4. `build` - Build for production
|
||||
5. `preview` - Preview production build
|
||||
6. `lint` - Run linter
|
||||
7. `clean` - Clean build artifacts
|
||||
8. `install` - Install dependencies
|
||||
0. `Exit`
|
||||
|
||||
- Features:
|
||||
- Interactive colored menu
|
||||
- Auto-installs dependencies if missing
|
||||
- Accepts command-line arguments (e.g., `./start.sh test`)
|
||||
- Runs from sample_interface directory
|
||||
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Interactive menu
|
||||
./start.sh
|
||||
|
||||
# Direct commands
|
||||
./start.sh dev
|
||||
./start.sh test
|
||||
./start.sh build
|
||||
```
|
||||
Reference in New Issue
Block a user