Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (alvamind-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
alvamind-tools
Utility tools for TypeScript projects that provide source code generation and git commit automation.
Installation
npm install ts-project-utils --save-dev
Usage
Add these scripts to your package.json:
{
"scripts": {
"generate-source": "generate-source",
"commit": "commit"
}
}
Generate Source Code
This utility generates a markdown file containing all your project's source code, with options to include or exclude specific files.
npm run generate-source [options]
Options:
output=filename.md
: Specify output filename (default: source-code.md)include=file1.ts,file2.ts
: Files to include (supports glob patterns)exclude=file1.ts,*.test.ts
: Files to exclude (supports glob patterns)
Example:
npm run generate-source output=docs.md include=main.ts,utils/*.ts exclude=*.test.ts,*.spec.ts
Default excludes:
- node_modules
- .git
- build directories
- test files
- and more (see source code for complete list)
Git Commit
Quick git add, commit, and push in one command.
npm run commit "your commit message"
This will:
- Add all changes (
git add .
) - Commit with your message (
git commit -m "your message"
) - Push to the current branch (
git push
)
If there are no changes to commit, it will try to push any unpushed commits.
Features
- 📝 Source code documentation generation
- 🔄 Automated git workflow
- ⚡ Simple CLI interface
- 🎯 Customizable file inclusion/exclusion
- 💡 Comment removal in generated docs
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - feel free to use this in your projects!
Author
Alvamind
Support
If you encounter any issues or have questions, please file an issue on the GitHub repository.