1.7 KiB
1.7 KiB
ADDED Requirements
Requirement: Project Root .gitignore File
The project SHALL include a .gitignore file at its root directory.
Scenario: .gitignore file existence
- WHEN the project repository is initialized or cloned
- THEN a
.gitignorefile SHALL be present in the root directory.
Requirement: Ignore Node.js Dependencies
The .gitignore file SHALL include patterns to ignore Node.js dependency directories and related build artifacts.
Scenario: Node.js project files
- WHEN a Node.js project is being developed
- THEN
node_modules/SHALL be ignored. - AND
npm-debug.logSHALL be ignored. - AND
build/directories within Node.js projects SHALL be ignored. - AND
dist/directories within Node.js projects SHALL be ignored.
Requirement: Ignore OS and IDE Specific Files
The .gitignore file SHALL include patterns to ignore operating system and integrated development environment (IDE) specific files.
Scenario: OS and IDE generated files
- WHEN development is performed on various operating systems or IDEs
- THEN
.DS_StoreSHALL be ignored. - AND
Thumbs.dbSHALL be ignored. - AND
.vscode/directory SHALL be ignored. - AND
.idea/directory SHALL be ignored. - AND
*.swpfiles SHALL be ignored.
Requirement: Ignore Project-Specific Build Artifacts and Logs
The .gitignore file SHALL include patterns to ignore project-specific build output directories and log files.
Scenario: Project build and log files
- WHEN the frontend or backend services are built
- THEN
frontend/build/SHALL be ignored. - AND
backend/build/SHALL be ignored. - AND
*.logfiles SHALL be ignored. - AND
.envfiles SHALL be ignored.