Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(cmake): update header file loading configuration in CMakeLists.… #6

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ file(GLOB_RECURSE SOURCES
"${CMAKE_SOURCE_DIR}/sources/*.cpp"
)

file(GLOB_RECURSE HEADERS
"${CMAKE_SOURCE_DIR}/include/vibe/*.h")

add_library(vibe STATIC ${SOURCES}
include/vibe/vibe.h)
add_library(vibe STATIC ${SOURCES} ${HEADERS})

install(TARGETS vibe
ARCHIVE DESTINATION lib
Expand Down
62 changes: 62 additions & 0 deletions COMMIT_FORMAT.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Commit Message Format

This repository uses a specific format for commit messages. Following this format helps maintain an organized and readable commit history. The format is as follows:

```
<type>(<scope>): <subject>
```

## Example:

```
feat(router): add support for new route parameters
```

## Message Structure

Each commit message should contain the following parts:

1. **type**: The type of change being made.
2. **scope**: The specific section of the project affected by the change (optional but recommended).
3. **subject**: A brief description of the change, in the present tense and without a period at the end.

### Commit Types

- **feat**: A new feature for the framework.
- **fix**: A bug fix.
- **docs**: Documentation changes (README, comments, etc.).
- **style**: Changes that do not affect the code's logic (whitespace, formatting, etc.).
- **refactor**: Code changes that neither fix bugs nor add features but improve the structure.
- **perf**: Changes that improve performance.
- **test**: Adding or correcting tests.
- **build**: Changes that affect the build system or external dependencies.
- **ci**: Changes to CI configuration files and scripts.
- **chore**: Minor updates or administrative tasks that do not affect the code’s logic.
- **revert**: Reverts a previous commit.

### Scope

The optional **scope** can include the name of the file, folder, or specific module affected by the change. Examples:

- `router`: Changes in routing.
- `middlewares`: Changes in middlewares.
- `sockets`: Modifications to socket handling.
- `security`: Updates in security modules.
- `examples`: Changes in the examples included in the project.
- `build`: Changes in the build system.

### Subject

The **subject** should be a brief description of what the commit does. Use the present tense, for example:

- `fix(router): resolve issue with route matching`
- `feat(middlewares): add new logging middleware`
- `refactor(parameters): simplify parameter processing logic`

### Commit Body (Optional)

The commit body is optional and can be used to explain the changes in more detail. It should be used when the change is not trivial and requires additional explanation.

---

Following this structure helps maintain a clear and consistent commit history, which is crucial for project management and collaboration.