File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,16 @@ Make your change. Add tests and/or documentation. Ensure all tests and lint pass
26
26
``` sh
27
27
$ npm test
28
28
$ npm run lint
29
+ $ npm run lint:dts
30
+ ```
31
+
32
+ Write a commit message that follows the [ Conventional Commits] [ commit ] specification.
33
+
34
+ The commit message will be linted during the pre-commit Git hook.
35
+ To manually lint the most recent commit message:
36
+
37
+ ``` sh
38
+ $ git log -1 --pretty=format:" %s" | npx commitlint
29
39
```
30
40
31
41
Push to your fork and [ submit a pull request] [ pr ] .
@@ -42,27 +52,20 @@ Things that will improve the chance that your pull request will be accepted:
42
52
- [ ] Write good documentation.
43
53
- [ ] Write a [ good commit message] [ commit ] .
44
54
45
- [ ci ] : https://travis-ci.org /remarkablemark/html-react-parser
55
+ [ ci ] : https://github.com /remarkablemark/html-react-parser/actions?query=workflow%3Abuild
46
56
[ commit ] : https://www.conventionalcommits.org/
47
57
48
58
## Test
49
59
50
- Run tests:
51
-
52
- ``` sh
53
- $ npm test
54
- ```
55
-
56
60
Run tests with coverage:
57
61
58
62
``` sh
59
- $ npm run test:coverage
63
+ $ npm test
60
64
```
61
65
62
66
View coverage report in your browser:
63
67
64
68
``` sh
65
- $ npm run test:coverage:report
66
69
$ open coverage/index.html
67
70
```
68
71
@@ -80,7 +83,7 @@ Fix lint errors:
80
83
$ npm run lint:fix
81
84
```
82
85
83
- Test TypeScript declaration file for style and correctness:
86
+ Test TypeScript declaration files for style and correctness:
84
87
85
88
``` sh
86
89
$ npm run lint:dts
@@ -92,5 +95,5 @@ Only collaborators with credentials can release and publish:
92
95
93
96
``` sh
94
97
$ npm run release
95
- $ npm publish && git push --follow-tags
98
+ $ git push --follow-tags && npm publish
96
99
```
You can’t perform that action at this time.
0 commit comments