git-hooks-list 0.0.1 → 1.0.3

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 (3) hide show
  1. package/index.json +0 -1
  2. package/package.json +46 -21
  3. package/readme.md +20 -2
package/index.json CHANGED
@@ -18,7 +18,6 @@
18
18
  "push-to-checkout",
19
19
  "pre-auto-gc",
20
20
  "post-rewrite",
21
- "rebase",
22
21
  "sendemail-validate",
23
22
  "fsmonitor-watchman",
24
23
  "p4-pre-submit",
package/package.json CHANGED
@@ -1,28 +1,35 @@
1
1
  {
2
2
  "name": "git-hooks-list",
3
- "version": "0.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "List of Git hooks",
5
5
  "keywords": [
6
6
  "git",
7
7
  "hooks",
8
8
  "list"
9
9
  ],
10
- "repository": "git@github.com:fisker/git-hooks-list.git",
10
+ "homepage": "https://github.com/fisker/git-hooks-list#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/fisker/git-hooks-list/issues"
13
+ },
14
+ "repository": "fisker/git-hooks-list",
15
+ "funding": "https://github.com/fisker/git-hooks-list?sponsor=1",
11
16
  "license": "MIT",
12
17
  "author": {
13
18
  "name": "fisker Cheung",
14
19
  "email": "lionkay@gmail.com",
15
20
  "url": "https://www.fiskercheung.com/"
16
21
  },
17
- "files": [
18
- "index.json"
19
- ],
20
22
  "sideEffects": false,
21
23
  "main": "index.json",
22
24
  "jsdelivr": "index.json",
23
25
  "unpkg": "index.json",
24
26
  "browser": "index.json",
27
+ "files": [
28
+ "index.json"
29
+ ],
25
30
  "scripts": {
31
+ "clean": "run-p clean:*",
32
+ "clean:dist": "del-cli dist",
26
33
  "dist": "run-p dist:*",
27
34
  "dist:npm": "np --yolo --no-yarn",
28
35
  "format": "run-p format:*",
@@ -36,32 +43,50 @@
36
43
  "lint:package-json": "yarn run format:package-json --check",
37
44
  "lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
38
45
  "release": "run-s lint test format dist",
39
- "test": "node test.js"
46
+ "test": "ava",
47
+ "test-coverage": "nyc yarn test",
48
+ "update": "node -r esm scripts/update.js"
40
49
  },
41
50
  "config": {
42
51
  "commitizen": {
43
52
  "path": "./node_modules/cz-conventional-changelog"
44
53
  }
45
54
  },
55
+ "ava": {
56
+ "require": [
57
+ "esm"
58
+ ],
59
+ "verbose": true
60
+ },
61
+ "nyc": {
62
+ "reporter": [
63
+ "text",
64
+ "lcov"
65
+ ]
66
+ },
46
67
  "devDependencies": {
47
- "@commitlint/cli": "8.2.0",
48
- "@fisker/commitlint-config": "1.1.4",
49
- "@fisker/eslint-config": "1.5.4",
50
- "@fisker/husky-config": "1.1.5",
51
- "@fisker/lint-staged-config": "1.0.8",
52
- "@fisker/prettier-config": "1.0.24",
53
- "cz-conventional-changelog": "3.0.2",
54
- "eslint": "6.7.2",
68
+ "@commitlint/cli": "8.3.5",
69
+ "@fisker/commitlint-config": "1.1.7",
70
+ "@fisker/eslint-config": "1.6.6",
71
+ "@fisker/husky-config": "1.1.9",
72
+ "@fisker/lint-staged-config": "1.0.11",
73
+ "@fisker/prettier-config": "1.0.28",
74
+ "ava": "3.3.0",
75
+ "cheerio": "1.0.0-rc.3",
76
+ "cz-conventional-changelog": "3.1.0",
77
+ "del-cli": "3.0.0",
78
+ "eslint": "6.8.0",
55
79
  "eslint-config-fisker": "4.5.0",
56
- "husky": "3.1.0",
57
- "lint-staged": "9.5.0",
58
- "markdownlint-cli": "0.20.0",
80
+ "esm": "3.2.25",
81
+ "got": "10.5.7",
82
+ "husky": "4.2.3",
83
+ "lint-staged": "10.0.7",
84
+ "markdownlint-cli": "0.22.0",
59
85
  "npm-run-all": "4.1.5",
86
+ "nyc": "15.0.0",
60
87
  "prettier": "1.19.1",
61
- "sort-package-json": "1.31.0"
62
- },
63
- "engines": {
64
- "node": ">=10.0.0"
88
+ "sort-package-json": "1.40.0",
89
+ "write-prettier-file": "1.2.6"
65
90
  },
66
91
  "publishConfig": {
67
92
  "access": "public",
package/readme.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # git-hooks-list
2
2
 
3
+ [![Build Status][github_actions_badge]][github_actions_link]
4
+ [![Coverage][coveralls_badge]][coveralls_link]
5
+ [![Npm Version][package_version_badge]][package_link]
6
+ [![MIT License][license_badge]][license_link]
7
+
8
+ [github_actions_badge]: https://img.shields.io/github/workflow/status/fisker/git-hooks-list/CI/master?style=flat-square
9
+ [github_actions_link]: https://github.com/fisker/git-hooks-list/actions?query=branch%3Amaster
10
+ [coveralls_badge]: https://img.shields.io/coveralls/github/fisker/git-hooks-list/master?style=flat-square
11
+ [coveralls_link]: https://coveralls.io/github/fisker/git-hooks-list?branch=master
12
+ [license_badge]: https://img.shields.io/npm/l/git-hooks-list.svg?style=flat-square
13
+ [license_link]: https://github.com/fisker/git-hooks-list/blob/master/license
14
+ [package_version_badge]: https://img.shields.io/npm/v/git-hooks-list.svg?style=flat-square
15
+ [package_link]: https://www.npmjs.com/package/git-hooks-list
16
+
3
17
  > List of Git hooks
4
18
 
5
19
  Data from [Git - githooks Documentation](https://git-scm.com/docs/githooks)
@@ -8,14 +22,18 @@ Data from [Git - githooks Documentation](https://git-scm.com/docs/githooks)
8
22
 
9
23
  ```bash
10
24
  yarn add git-hooks-list
25
+
26
+ # OR with npm
27
+
28
+ npm install --save git-hooks-list
11
29
  ```
12
30
 
13
31
  ## Usage
14
32
 
15
33
  ```js
16
- const gitHooks = require('git-hooks-list')
34
+ import gitHooks from 'git-hooks-list'
17
35
 
18
36
  console.log(gitHooks)
19
37
 
20
- // => ['applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-commit' ...]
38
+ // => ['applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-commit', ...]
21
39
  ```