chore: add git configuration

Add .gitignore for common patterns and .gitmessage for commit template
This commit is contained in:
imfozilbek
2025-11-23 21:19:12 +05:00
parent b6b8ac69d7
commit f7bad59b94
2 changed files with 121 additions and 0 deletions

88
.gitignore vendored Normal file
View File

@@ -0,0 +1,88 @@
r# Dependencies
node_modules/
.pnp
.pnp.js
# Build outputs
dist/
build/
*.tsbuildinfo
# Testing
coverage/
.nyc_output/
*.lcov
# Environment variables
.env
.env*.local
.env.development.local
.env.test.local
.env.production.local
# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# IDE and editors
.idea/
*.swp
*.swo
*~
.project
.classpath
.settings/
*.launch
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# OS files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Temporary files
*.tmp
*.temp
.cache/
.temp/
.tmp/
# Debug
.vscode-test/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity

33
.gitmessage Normal file
View File

@@ -0,0 +1,33 @@
# <type>: <subject>
#
# <body>
#
# <footer>
# Type should be one of the following:
# * feat: A new feature
# * fix: A bug fix
# * docs: Documentation only changes
# * style: Changes that do not affect the meaning of the code (formatting, etc)
# * refactor: A code change that neither fixes a bug nor adds a feature
# * perf: A code change that improves performance
# * test: Adding missing tests or correcting existing tests
# * build: Changes that affect the build system or dependencies
# * ci: Changes to CI configuration files and scripts
# * chore: Other changes that don't modify src or test files
# * revert: Reverts a previous commit
#
# Subject line rules:
# - Use imperative mood ("add feature" not "added feature")
# - Don't capitalize first letter
# - No period at the end
# - Limit to 50 characters
#
# Body (optional):
# - Explain what and why (not how)
# - Wrap at 72 characters
# - Separate from subject with blank line
#
# Footer (optional):
# - Reference issues: "Fixes #123" or "Closes #123"
# - Breaking changes: "BREAKING CHANGE: description"