Comprehensive development documentation for Legal Markdown JS contributors, maintainers, and developers.
- Start Here: Contributing Guide - Code of conduct, contribution process, and community guidelines
- Environment Setup: Development Guide - Complete development environment setup
- Code Standards: Development Guidelines - Coding standards, architecture patterns, and best practices
| Document | Purpose | Audience |
|---|---|---|
| Contributing Guide | Community guidelines and contribution process | All contributors |
| Development Guide | Environment setup and development workflow | New developers |
| Development Guidelines | Code standards and architectural decisions | All developers |
-
Development Guide - Complete development environment setup
- Prerequisites and dependencies
- Repository setup and configuration
- IDE configuration and recommended extensions
- Development server and hot reloading
- Debugging setup and techniques
-
Development Guidelines - Code standards and best practices
- TypeScript coding standards
- Architecture patterns and decisions
- Code review guidelines
- Performance considerations
- Security best practices
- Contributing Guide - How to contribute to the project
- Code of conduct
- Issue reporting guidelines
- Pull request process
- Community communication channels
- Recognition and attribution
- Testing Guide - Comprehensive testing documentation
- Testing framework setup (Vitest)
- Unit testing strategies
- Integration testing patterns
- End-to-end testing with Playwright
- Performance testing and benchmarking
- Test coverage requirements
- Continuous integration testing
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
# Run specific test file
npm test -- filename.test.ts
# Run integration tests
npm run test:integration
# Run end-to-end tests
npm run test:e2e-
Release Process - Complete release management process
- Semantic versioning strategy
- Release preparation checklist
- Automated release pipeline
- Changelog generation
- Distribution and publishing
-
Release Instructions - Step-by-step release execution
- Pre-release verification
- Release execution steps
- Post-release validation
- Rollback procedures
- Hotfix releases
# Pre-release validation
npm run validate
# Package validation
npm run validate:package
# Dry-run semantic-release
npm run release:dry
# Execute semantic-release (typically in CI)
npx semantic-release-
Setup Environment
git clone https://github.com/your-org/legal-markdown-js.git cd legal-markdown-js npm install npm run dev -
Create Feature Branch
git checkout -b feature/your-feature-name
-
Development Process
- Follow Development Guidelines
- Write tests for new functionality
- Ensure code passes all checks
- Document changes appropriately
-
Quality Assurance
npm run lint # Code linting npm run typecheck # TypeScript checking npm test # Run test suite npm run build # Build verification
-
Submit Changes
- Create pull request
- Address review feedback
- Ensure CI/CD passes
- Merge when approved
- main - Production-ready code
- develop - Integration branch for features
- feature/* - Individual feature development
- hotfix/* - Critical production fixes
- release/* - Release preparation branches
- Scripts Reference - Complete build and utility
scripts documentation
- Build scripts and configurations
- Development utilities
- Testing automation
- Release automation
- Maintenance scripts
| Command | Purpose |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm test |
Run test suite |
npm run lint |
Code linting |
npm run typecheck |
TypeScript validation |
npm run docs |
Generate API documentation |
- TypeScript - Type-safe JavaScript development
- Vitest - Fast unit testing framework
- ESLint - Code linting and style enforcement
- Prettier - Code formatting
- Playwright - End-to-end testing
- TypeDoc - API documentation generation
- Performance Profiling: Built-in performance monitoring
- Memory Analysis: Heap snapshots and leak detection
- Debug Mode: Comprehensive debugging with source maps
- Benchmarking: Automated performance regression testing
- Node.js: 18.x or higher
- npm: 8.x or higher
- Git: 2.x or higher
- Operating System: Windows 10+, macOS 10.15+, or Linux
- VS Code with Legal Markdown JS extension pack
- Git GUI client (GitKraken, SourceTree, or GitHub Desktop)
- Terminal with good Unicode support
- Browser with developer tools (Chrome or Firefox)
# Clone and setup
git clone https://github.com/your-org/legal-markdown-js.git
cd legal-markdown-js
# Install dependencies
npm install
# Setup development environment
npm run setup-config
# Verify installation
npm run validate- GitHub Issues - Bug reports and feature requests
- GitHub Discussions - Community questions and discussions
- Contributing Guide - Detailed contribution instructions
- Code of Conduct - Community guidelines and expectations
For project-specific questions or maintainer contact:
- Review Contributing Guide for communication channels
- Check GitHub Issues for existing discussions
- Follow issue templates for bug reports and feature requests
Note: This development documentation is actively maintained. Please refer to the Contributing Guide for information about updating documentation or reporting issues with these guides.