docuwrite/
├── .devcontainer/ # Development container configuration
│ ├── devcontainer.json # VSCode devcontainer settings
│ └── Dockerfile.dev # Development environment setup
├── .github/
│ └── workflows/ # GitHub Actions workflows
│ └── docker-image.yml # Multi-arch container build
├── src/
│ ├── cli/ # Command-line tools
│ │ ├── typescript/ # TypeScript source files
│ │ │ ├── commands/ # Individual CLI commands
│ │ │ │ └── docuwrite-hello.ts # Hello world test command
│ │ │ ├── utils/ # Shared utilities
│ │ │ └── types/ # TypeScript type definitions
│ │ └── bash/ # Bash script tools
│ │ └── docuwrite-hello.sh # Hello world test wrapper
│ └── web/ # Future Next.js web interface
├── dist/ # Compiled JavaScript output
│ └── cli/ # Compiled CLI tools
│ └── commands/ # Compiled command files
├── docker/
│ ├── Dockerfile.prod # Production container build
│ └── docuwrite-entrypoint.sh # Extended entrypoint script
├── tests/
│ ├── cli/ # CLI tool tests
│ │ ├── typescript/ # TypeScript tests
│ │ │ └── docuwrite-hello.test.ts # Tests for hello command
│ │ └── bash/ # Bash script tests
│ └── fixtures/ # Test fixture files
├── scripts/ # Build and test scripts
│ ├── build-ts.sh # TypeScript build script (run in devcontainer)
│ └── build-test-docker.sh # Docker build and test script (run on host)
├── .gitignore # Git ignore file
├── package.json # Node.js package configuration
├── tsconfig.json # TypeScript configuration
└── README.md # Project documentation
devcontainer.json: Configures VS Code development container settingsDockerfile.dev: Development environment with TypeScript toolsDockerfile.prod: Production build that extends docuwrite-basetsconfig.json: TypeScript compiler configurationpackage.json: Node.js project configuration and scripts
src/cli/typescript/commands/docuwrite-hello.ts: Test command implementing basic hello world functionalitysrc/cli/bash/docuwrite-hello.sh: Bash wrapper script for hello command
docker/docuwrite-entrypoint.sh: Extended entrypoint script that preserves base functionality and adds DocuWrite commandsdocker/Dockerfile.prod: Production container configuration
tests/cli/typescript/docuwrite-hello.test.ts: Tests for hello world commandtests/fixtures/: Directory for test input files and expected outputs
scripts/build-ts.sh: Script for building TypeScript code (must be run inside dev container)scripts/build-test-docker.sh: Script for building and testing Docker container (must be run on host machine)
- Full TypeScript development environment
- Based on docuwrite-base
- Includes all source files and development tools
- Used for TypeScript development and testing
- Extends docuwrite-base
- Contains only compiled JavaScript and bash scripts
- Preserves all original docuwrite-base functionality
- Adds DocuWrite commands like docuwrite-hello
- Development is done in the dev container
build-ts.shis run inside the dev container to compile TypeScript to JavaScriptbuild-test-docker.shis run on the host machine to build and test the production container- Production container includes only the compiled code
- GitHub Actions handles multi-architecture builds