1 Commits

Author SHA1 Message Date
Alexander
29c564380d feat(infra): Adds pre-comit setup and conventional commit message enforment
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m50s
Adds git-hooks for pre-commit package and configuration for repository checks and commit messages
2023-12-11 21:46:45 +01:00
9 changed files with 29 additions and 8 deletions

2
.gitignore vendored
View File

@@ -23,7 +23,7 @@
.LSOverride
# Icon must end with two \r
Icon
Icon
# Thumbnails
._*

21
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,21 @@
## See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-byte-order-marker
- id: end-of-file-fixer
- id: mixed-line-ending
- id: detect-private-key
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, chore, test]

View File

@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.

View File

@@ -1 +1 @@
# On-Site VTT
# On-Site VTT

View File

@@ -1,4 +1,4 @@
{
"on-site-vtt.title": "On-Site VTT",
"on-site-vtt.rotate": "Ansicht drehen"
}
}

View File

@@ -1,4 +1,4 @@
{
"on-site-vtt.title": "On-Site VTT",
"on-site-vtt.rotate": "Rotate view"
}
}

View File

@@ -40,4 +40,4 @@
"esmodules": [
"./scripts/on-site-vtt.js"
]
}
}

View File

@@ -38,4 +38,4 @@ function rotateView() {
}
Hooks.on("init", init);
Hooks.on("ready", ready);
Hooks.on("ready", ready);

View File

@@ -1,3 +1,3 @@
.nsvRotate {
rotate: 180deg;
}
}