@evilmartians/lefthook-installer 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +42 -29
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
- ![Build Status](https://api.travis-ci.org/evilmartians/lefthook.svg?branch=master)
1
+
2
+ ![Build Status](https://github.com/evilmartians/lefthook/actions/workflows/test.yml/badge.svg?branch=master)
2
3
 
3
4
  # Lefthook
4
5
 
@@ -10,45 +11,53 @@
10
11
  Fast and powerful Git hooks manager for Node.js, Ruby or any other type of projects.
11
12
 
12
13
  * **Fast.** It is written in Go. Can run commands in parallel.
13
- * **Powerful.** With a few lines in the config you can check only the changed files on `pre-push` hook.
14
+ * **Powerful.** It allows to control execution and files you pass to your commands.
14
15
  * **Simple.** It is single dependency-free binary which can work in any environment.
15
16
 
16
17
  📖 [Read the introduction post](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook)
17
18
 
18
- ```yml
19
- # On `git push` lefthook will run spelling and links check for all of the changed files
20
- pre-push:
21
- parallel: true
22
- commands:
23
- spelling:
24
- files: git diff --name-only HEAD @{push}
25
- glob: "*.md"
26
- run: npx yaspeller {files}
27
- check-links:
28
- files: git diff --name-only HEAD @{push}
29
- glob: "*.md"
30
- run: npx markdown-link-check {files}
31
- ```
32
-
33
19
  <a href="https://evilmartians.com/?utm_source=lefthook">
34
20
  <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
35
21
 
22
+ ## Install
23
+
24
+ With **Go** (>= 1.19):
25
+
26
+ ```bash
27
+ go install github.com/evilmartians/lefthook@latest
28
+ ```
29
+
30
+ With **NPM**:
31
+
32
+ ```bash
33
+ npm install lefthook --save-dev
34
+ ```
35
+
36
+ With **Ruby**:
37
+
38
+ ```bash
39
+ gem install lefthook
40
+ ```
41
+
42
+ **[Installation guide](./docs/install.md)** with more different installation instructions.
43
+
36
44
  ## Usage
37
45
 
38
- Choose your environment:
46
+ Lefthook is easy to use. Once you configure and setup you can forget that it even exists and rely on the magic underneath.
39
47
 
40
- * **[Node.js](./docs/node.md)**
41
- * **[Ruby](./docs/ruby.md)**
42
- * [Other environments](./docs/other.md)
48
+ See:
43
49
 
44
- Then you can find all Lefthook features in [the full guide](./docs/full_guide.md) and explore [wiki](https://github.com/evilmartians/lefthook/wiki).
50
+ - [**Usage**](./docs/usage.md) of **lefthook** CLI utility.
51
+ - [**Configuration**](./docs/configuration.md) details for `lefthook.yml`
52
+ - [**Wiki**](https://github.com/evilmartians/lefthook/wiki) for other information.
53
+ - [**Discussions**](https://github.com/evilmartians/lefthook/discussions) if you want to ask a question, suggest a feature, or report a bug.
45
54
 
46
55
  ***
47
56
 
48
57
  ## Why Lefthook
49
58
 
50
59
  * ### **Parallel execution**
51
- If you want more speed. [Example](./docs/full_guide.md#parallel-execution)
60
+ Gives you more speed. [Example](./docs/full_guide.md#parallel-execution)
52
61
 
53
62
  ```yml
54
63
  pre-push:
@@ -181,10 +190,15 @@ skip_output:
181
190
  ## Table of contents:
182
191
 
183
192
  ### Guides
184
- * [Node.js](./docs/node.md)
185
- * [Ruby](./docs/ruby.md)
186
- * [Other environments](./docs/other.md)
187
- * [Full features guide](./docs/full_guide.md)
193
+
194
+ * [Install with Node.js](./docs/install.md#node)
195
+ * [Install with Ruby](./docs/install.md#ruby)
196
+ * [Install with Homebrew](./docs/install.md#homebrew)
197
+ * [Install for Debian-based Linux](./docs/install.md#deb)
198
+ * [Install for RPM-based Linux](./docs/install.md#rpm)
199
+ * [Install for Arch Linux](./docs/install.md#arch)
200
+ * [Usage](./docs/usage.md)
201
+ * [Configuration](./docs/configuration.md)
188
202
  * [Troubleshooting](https://github.com/evilmartians/lefthook/wiki/Troubleshooting)
189
203
 
190
204
  ### Migrate from
@@ -193,7 +207,7 @@ skip_output:
193
207
  * [Overcommit](https://github.com/evilmartians/lefthook/wiki/Migration-from-overcommit)
194
208
 
195
209
  ### Examples
196
- * [Simple script](https://github.com/evilmartians/lefthook/tree/master/examples/scripts)
210
+ * [Simple script](https://github.com/evilmartians/lefthook/tree/master/examples/with_scripts)
197
211
  * [Full features](https://github.com/evilmartians/lefthook/tree/master/examples/complete)
198
212
 
199
213
  ### Benchmarks
@@ -210,4 +224,3 @@ skip_output:
210
224
  * [Automatically linting docker containers](https://dev.to/nitzano/linting-docker-containers-2lo6?utm_source=lefthook)
211
225
  * [Smooth PostgreSQL upgrades in DockerDev environments with Lefthook](https://dev.to/palkan_tula/smooth-postgresql-upgrades-in-dockerdev-environments-with-lefthook-203k?utm_source=lefthook)
212
226
  * [Lefthook for React/React Native apps](https://blog.logrocket.com/deep-dive-into-lefthook-react-native?utm_source=lefthook)
213
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evilmartians/lefthook-installer",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "Simple git hooks manager",
5
5
  "main": "index.js",
6
6
  "bin": {