From 893ccd712999b43a39b19fcdb0aa279cc8126d19 Mon Sep 17 00:00:00 2001 From: Kevin Chappell Date: Wed, 29 May 2024 16:26:33 -0700 Subject: [PATCH 1/2] chore: add lefthook for commitlint --- lefthook.yml | 4 ++ package.json | 11 +++-- pnpm-lock.yaml | 113 +++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 110 insertions(+), 18 deletions(-) create mode 100644 lefthook.yml diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..7825485 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,4 @@ +commit-msg: + commands: + commitlint: + run: npx commitlint --edit $1 diff --git a/package.json b/package.json index 92e6212..85fa666 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "lint": "biome lint index.js", "format": "biome check --apply index.js", "semantic-release": "semantic-release", - "test": "node --test --no-warnings" + "test": "node --test --no-warnings", + "prepare": "lefthook install", + "postmerge": "lefthook install" }, "repository": { "type": "git", @@ -36,11 +38,12 @@ }, "devDependencies": { "@biomejs/biome": "1.7.3", - "@commitlint/cli": "^19.2.1", - "@commitlint/config-angular": "^19.1.0", + "@commitlint/cli": "^19.3.0", + "@commitlint/config-conventional": "^19.2.2", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/npm": "^12.0.1", + "lefthook": "^1.6.13", "semantic-release": "^23.1.1" }, "release": { @@ -58,7 +61,7 @@ }, "commitlint": { "extends": [ - "@commitlint/config-angular" + "@commitlint/config-conventional" ], "rules": { "type-enum": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5585dcb..aeeb69a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,11 +16,11 @@ importers: specifier: 1.7.3 version: 1.7.3 '@commitlint/cli': - specifier: ^19.2.1 + specifier: ^19.3.0 version: 19.3.0(@types/node@20.12.12)(typescript@5.4.5) - '@commitlint/config-angular': - specifier: ^19.1.0 - version: 19.3.0 + '@commitlint/config-conventional': + specifier: ^19.2.2 + version: 19.2.2 '@semantic-release/changelog': specifier: ^6.0.3 version: 6.0.3(semantic-release@23.1.1(typescript@5.4.5)) @@ -30,6 +30,9 @@ importers: '@semantic-release/npm': specifier: ^12.0.1 version: 12.0.1(semantic-release@23.1.1(typescript@5.4.5)) + lefthook: + specifier: ^1.6.13 + version: 1.6.13 semantic-release: specifier: ^23.1.1 version: 23.1.1(typescript@5.4.5) @@ -110,12 +113,8 @@ packages: engines: {node: '>=v18'} hasBin: true - '@commitlint/config-angular-type-enum@19.1.0': - resolution: {integrity: sha512-eLjt7vSArP62kpDmmIZNdIBjPzbqY8jss6mVOcSDm4t1KfDw4UmPrtPh/7zcIL3GI5uf/7W8d2s3K0qisf9C+g==} - engines: {node: '>=v18'} - - '@commitlint/config-angular@19.3.0': - resolution: {integrity: sha512-D8ue6s7f/A/ph/4vSEj32zxg/WHRF21vguOigAymUJ7SfUPF/BD+C/UGt7I1aEEhdgoq7MIS8bNAJroYvSzMwQ==} + '@commitlint/config-conventional@19.2.2': + resolution: {integrity: sha512-mLXjsxUVLYEGgzbxbxicGPggDuyWNkf25Ht23owXIH+zV2pv1eJuzLK3t1gDY5Gp6pxdE60jZnWUY5cvgL3ufw==} engines: {node: '>=v18'} '@commitlint/config-validator@19.0.3': @@ -458,6 +457,10 @@ packages: resolution: {integrity: sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==} engines: {node: '>=16'} + conventional-changelog-conventionalcommits@7.0.2: + resolution: {integrity: sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==} + engines: {node: '>=16'} + conventional-changelog-writer@7.0.1: resolution: {integrity: sha512-Uo+R9neH3r/foIvQ0MKcsXkX642hdm9odUp7TqgFS7BsalTcjzRlIfWZrZR1gbxOozKucaKt5KAbjW8J8xRSmA==} engines: {node: '>=16'} @@ -1002,6 +1005,50 @@ packages: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} engines: {'0': node >= 0.2.0} + lefthook-darwin-arm64@1.6.13: + resolution: {integrity: sha512-cRmqST0zZQNHl0VwBrlHLDaU1qsiTBLMiDp6bttZzUkfqwH9Pqhj2muxnoAnNXxzhlQsriCIuc44BxtbzL+GTw==} + cpu: [arm64] + os: [darwin] + + lefthook-darwin-x64@1.6.13: + resolution: {integrity: sha512-GYGG71zeUSUua71Idq5/poW8BcR8kNUMzfyZ6ZGSvGxzdnmJRvSHk/bxrvcvfScfqCXKASUM0yRcLgQjJRs5Dg==} + cpu: [x64] + os: [darwin] + + lefthook-freebsd-arm64@1.6.13: + resolution: {integrity: sha512-VjK6rizPmb79IuyCMZtUKIXRZejs51ItuVSdNGkJg3YFIYzhpINTrQ/9d5/hTJ/QaOtPk72WZsayh5nQYCwJRw==} + cpu: [arm64] + os: [freebsd] + + lefthook-freebsd-x64@1.6.13: + resolution: {integrity: sha512-pz3MxCNIDB1i4LDxK+z4AnRS4ZH9YU6ryDm5RbHQ24sDLPqVdDWs90IAtexp9xvevZwPEtU5e/qCHNuqoYALmQ==} + cpu: [x64] + os: [freebsd] + + lefthook-linux-arm64@1.6.13: + resolution: {integrity: sha512-IvsXpPb1U2nWVByQczyK48pnUAeqlt8Tx73YM8dUU8YBVSN1zVt8xqMSNqnk46zhggCPHEfc3aqL5UInnveJMA==} + cpu: [arm64] + os: [linux] + + lefthook-linux-x64@1.6.13: + resolution: {integrity: sha512-Ia8Rr1P7rA+E70ABD80Hm0z1kQK7F+qgoVIpeg+MLwqMHNMWLR0lG+v7iF6W+CeTqgz+80r6E1OjT3rh4O7Feg==} + cpu: [x64] + os: [linux] + + lefthook-windows-arm64@1.6.13: + resolution: {integrity: sha512-z1dcEsm7r8OIec2f8tBL02aLZHNWaxI4j+OIPiWKN7AIk4or0uSZTxPCNFnVprfc4tOuDUZlJJJovjrQdRsvNQ==} + cpu: [arm64] + os: [win32] + + lefthook-windows-x64@1.6.13: + resolution: {integrity: sha512-DRgAWkNVyu/JgjXD5Hp8dy/iEep4K9YNUgUSvBlV17DfujUVyrfn2L6RccIdVI8VgIEPCvT+oevmG0ViyfPy3Q==} + cpu: [x64] + os: [win32] + + lefthook@1.6.13: + resolution: {integrity: sha512-2yaLmiEyQUPpSmNwj6Ak1nYjaprHI+a8gYRu2QH+kRkaig+gdpayzIOtL+28phzxsw0aJNTeIeDMnVautKx5eQ==} + hasBin: true + lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -1820,11 +1867,10 @@ snapshots: - '@types/node' - typescript - '@commitlint/config-angular-type-enum@19.1.0': {} - - '@commitlint/config-angular@19.3.0': + '@commitlint/config-conventional@19.2.2': dependencies: - '@commitlint/config-angular-type-enum': 19.1.0 + '@commitlint/types': 19.0.3 + conventional-changelog-conventionalcommits: 7.0.2 '@commitlint/config-validator@19.0.3': dependencies: @@ -2273,6 +2319,10 @@ snapshots: dependencies: compare-func: 2.0.0 + conventional-changelog-conventionalcommits@7.0.2: + dependencies: + compare-func: 2.0.0 + conventional-changelog-writer@7.0.1: dependencies: conventional-commits-filter: 4.0.0 @@ -2870,6 +2920,41 @@ snapshots: jsonparse@1.3.1: {} + lefthook-darwin-arm64@1.6.13: + optional: true + + lefthook-darwin-x64@1.6.13: + optional: true + + lefthook-freebsd-arm64@1.6.13: + optional: true + + lefthook-freebsd-x64@1.6.13: + optional: true + + lefthook-linux-arm64@1.6.13: + optional: true + + lefthook-linux-x64@1.6.13: + optional: true + + lefthook-windows-arm64@1.6.13: + optional: true + + lefthook-windows-x64@1.6.13: + optional: true + + lefthook@1.6.13: + optionalDependencies: + lefthook-darwin-arm64: 1.6.13 + lefthook-darwin-x64: 1.6.13 + lefthook-freebsd-arm64: 1.6.13 + lefthook-freebsd-x64: 1.6.13 + lefthook-linux-arm64: 1.6.13 + lefthook-linux-x64: 1.6.13 + lefthook-windows-arm64: 1.6.13 + lefthook-windows-x64: 1.6.13 + lines-and-columns@1.2.4: {} load-json-file@4.0.0: From 151b11ed786d6383e7f3afd6008f1567443fcbec Mon Sep 17 00:00:00 2001 From: Kevin Chappell Date: Wed, 29 May 2024 16:28:06 -0700 Subject: [PATCH 2/2] chore: update readme --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 499cafc..ea3270d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # formBuilder Languages [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) -[![Build Status](https://travis-ci.com/kevinchappell/formBuilder-languages.svg?branch=master)](https://travis-ci.com/kevinchappell/formBuilder-languages) This is the repository of language files for [jQuery formBuilder](https://github.com/kevinchappell/formBuilder)