|
| 1 | +{ |
| 2 | + "version": "1.0.0", |
| 3 | + "name": "Create Polyglot Framework Tasks", |
| 4 | + "description": "Task plan for developing the create-polyglot CLI framework for polyglot microservices.", |
| 5 | + "tasks": [ |
| 6 | + { |
| 7 | + "id": "init-cli", |
| 8 | + "title": "Initialize CLI Project Structure", |
| 9 | + "description": "Set up the Node.js CLI using oclif or Commander. Add basic command parsing and help menus.", |
| 10 | + "steps": [ |
| 11 | + "Run `npm init -y` and install dependencies (`commander`, `execa`, `chalk`, `inquirer`).", |
| 12 | + "Set up `bin/create-polyglot.js` entry point.", |
| 13 | + "Implement the CLI banner and basic help text.", |
| 14 | + "Add version and --help flags." |
| 15 | + ] |
| 16 | + }, |
| 17 | + { |
| 18 | + "id": "add-init-command", |
| 19 | + "title": "Implement `init` Command", |
| 20 | + "description": "Scaffold a new polyglot monorepo structure.", |
| 21 | + "steps": [ |
| 22 | + "Add `polyglot init` command to create folder structure `/services`, `/gateway`, `/infra`.", |
| 23 | + "Generate a base README.md and polyglot.json config file.", |
| 24 | + "Prompt user for project name and default languages." |
| 25 | + ] |
| 26 | + }, |
| 27 | + { |
| 28 | + "id": "add-service-command", |
| 29 | + "title": "Implement `add service` Command", |
| 30 | + "description": "Generate new microservice boilerplate based on selected language and framework.", |
| 31 | + "steps": [ |
| 32 | + "Add `polyglot add service <name> --lang <language> --framework <framework>` command.", |
| 33 | + "Copy templates from `/templates/{language}-{framework}`.", |
| 34 | + "Inject service metadata into `polyglot.json`.", |
| 35 | + "Generate Dockerfile and add service entry in `docker-compose.yml`." |
| 36 | + ] |
| 37 | + }, |
| 38 | + { |
| 39 | + "id": "add-dev-command", |
| 40 | + "title": "Implement `polyglot dev` Command", |
| 41 | + "description": "Run all microservices concurrently using Docker Compose or concurrently package.", |
| 42 | + "steps": [ |
| 43 | + "Add `polyglot dev` command to spin up all services.", |
| 44 | + "Show colored logs for each service (use chalk or pino-pretty).", |
| 45 | + "Detect health endpoints automatically." |
| 46 | + ] |
| 47 | + }, |
| 48 | + { |
| 49 | + "id": "add-plugin-system", |
| 50 | + "title": "Add Plugin System", |
| 51 | + "description": "Implement plugin-based architecture for extensibility.", |
| 52 | + "steps": [ |
| 53 | + "Design plugin interface (install scripts, templates, hooks).", |
| 54 | + "Add `polyglot add plugin <name>` command.", |
| 55 | + "Create official plugins for Postgres, Kafka, and Auth." |
| 56 | + ] |
| 57 | + }, |
| 58 | + { |
| 59 | + "id": "template-examples", |
| 60 | + "title": "Add Template Examples", |
| 61 | + "description": "Provide ready-to-run templates for common frameworks.", |
| 62 | + "steps": [ |
| 63 | + "Add Node/Express, Python/FastAPI, Java/Spring Boot templates under /templates.", |
| 64 | + "Each should include minimal code + Dockerfile + README.", |
| 65 | + "Test generation for all combinations." |
| 66 | + ] |
| 67 | + }, |
| 68 | + { |
| 69 | + "id": "setup-ci", |
| 70 | + "title": "Setup GitHub CI for Testing & Build", |
| 71 | + "description": "Add GitHub Actions to test and build the CLI automatically.", |
| 72 | + "steps": [ |
| 73 | + "Add `.github/workflows/test.yml` for lint + test + build.", |
| 74 | + "Run `npm test` on PRs.", |
| 75 | + "Publish new versions automatically to npm when tagged." |
| 76 | + ] |
| 77 | + }, |
| 78 | + { |
| 79 | + "id": "docs-and-readme", |
| 80 | + "title": "Add Documentation & README", |
| 81 | + "description": "Create compelling documentation for create-polyglot.", |
| 82 | + "steps": [ |
| 83 | + "Write detailed README with examples and diagrams.", |
| 84 | + "Add CONTRIBUTING.md and templates for issues/PRs.", |
| 85 | + "Prepare docs site using Docusaurus or VitePress." |
| 86 | + ] |
| 87 | + }, |
| 88 | + { |
| 89 | + "id": "release-v1", |
| 90 | + "title": "Prepare v1.0 Release", |
| 91 | + "description": "Finalize and publish the first stable version.", |
| 92 | + "steps": [ |
| 93 | + "Test all commands end-to-end.", |
| 94 | + "Bump version to 1.0.0.", |
| 95 | + "Publish to npm (`npm publish`).", |
| 96 | + "Announce release on GitHub, Reddit, and ProductHunt." |
| 97 | + ] |
| 98 | + } |
| 99 | + ] |
| 100 | +} |
0 commit comments