test-our-package
v1.0.0
Published
Test project for ai-commit-validator and branch-commit-validator packages
Downloads
4
Maintainers
Readme
Test Project for NPM Packages
This project tests both of your npm packages:
[email protected]- AI-powered commit validation[email protected]- Branch name and commit message validation
Your Current Code Analysis
index.js Analysis:
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send('Hello World!');
}
);
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});Potential Issues Found:
- Missing error handling - No error handling for server startup
- Hardcoded port - Port should be configurable via environment variable
- Basic structure - Could benefit from better organization
- Missing middleware - No body parsing or security middleware
Testing Your NPM Packages
1. Testing Branch Commit Validator
# Test branch name validation
npx validate-git branch feature/SHOP-1234-new-feature
npx validate-git commit SHOP-1234-implement-new-feature2. Testing AI Commit Validator
# Test AI-powered validation (requires OPENAI_API_KEY)
npx validate-commit