A tiny utility to git commit in the future.
brew tap raevilman/tap
brew install future-commit
---
- Node.js (v14 or higher)
- npm
- Git
-
Clone the repository:
git clone https://github.com/raevilman/future-commit.git cd future-commit -
Install dependencies:
npm install
Run the tool directly with Node.js:
node index.js 1h -m "Test commit message"Or make it executable and run:
chmod +x index.js
./index.js 1h -m "Test commit message"# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:watch
# Run specific test file
npx jest tests/index.test.js# Build for distribution
npm run build
# Package as executable
npm run package├── index.js # Main CLI script
├── package.json # Dependencies and scripts
├── docs/ # Documentation
│ └── testing.md # Test coverage and strategy
├── tests/ # Test suite
│ ├── index.test.js # Unit tests
│ ├── integration.test.js # Integration tests
│ ├── edge-cases.test.js # Edge case tests
│ ├── performance.test.js # Performance tests
│ └── setup.js # Test configuration
├── build/ # Built files (generated)
└── dist/ # Packaged executables (generated)
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes
- Add tests for new functionality
- Ensure all tests pass:
npm test - Commit your changes:
git commit -m "Description" - Push to your fork:
git push origin feature-name - Create a pull request
For verbose test output:
VERBOSE_TESTS=1 npm testTo test without actual git commits:
node index.js 1h -m "test" --dry-run