feat(infra): Adds pre-comit setup and conventional commit message enforment
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m50s
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
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -23,7 +23,7 @@
|
|||||||
.LSOverride
|
.LSOverride
|
||||||
|
|
||||||
# Icon must end with two \r
|
# Icon must end with two \r
|
||||||
Icon
|
Icon
|
||||||
|
|
||||||
# Thumbnails
|
# Thumbnails
|
||||||
._*
|
._*
|
||||||
|
|||||||
21
.pre-commit-config.yaml
Normal file
21
.pre-commit-config.yaml
Normal 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]
|
||||||
@@ -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
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
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
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"on-site-vtt.title": "On-Site VTT",
|
"on-site-vtt.title": "On-Site VTT",
|
||||||
"on-site-vtt.rotate": "Ansicht drehen"
|
"on-site-vtt.rotate": "Ansicht drehen"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"on-site-vtt.title": "On-Site VTT",
|
"on-site-vtt.title": "On-Site VTT",
|
||||||
"on-site-vtt.rotate": "Rotate view"
|
"on-site-vtt.rotate": "Rotate view"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,4 +40,4 @@
|
|||||||
"esmodules": [
|
"esmodules": [
|
||||||
"./scripts/on-site-vtt.js"
|
"./scripts/on-site-vtt.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,4 @@ function rotateView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Hooks.on("init", init);
|
Hooks.on("init", init);
|
||||||
Hooks.on("ready", ready);
|
Hooks.on("ready", ready);
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
.nsvRotate {
|
.nsvRotate {
|
||||||
rotate: 180deg;
|
rotate: 180deg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user