Skip to content

Commit bcaaaf1

Browse files
authored
Merge pull request #17 from veghdev/contributing
CONTRIBUTING.md: set up contributing guide
2 parents 1603731 + 9d47f01 commit bcaaaf1

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pull_request_template.md
1212

1313
CODE_OF_CONDUCT.md
1414
SECURITY.md
15+
CONTRIBUTING.md

CONTRIBUTING.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing
2+
3+
# Issues
4+
5+
You can find our open issues in the project's [issue tracker](https://github.com/veghdev/write-npmstat/issues). Please let us know if you find any issues or have any feature requests there.
6+
7+
# Pull requests
8+
9+
A pull request must contain a linked issue, its title should explain the issue or feature shortly and clearly.
10+
11+
# CI check
12+
13+
The `check` script collects the scripts which are run by the `CI` workflow.
14+
The `CI` workflow invokes the `check-prettier` and the `check-eslint` scripts.
15+
16+
```sh
17+
npm run check
18+
```
19+
20+
## Formatting
21+
22+
The write-npmstat project is formatted with `prettier`.
23+
Run the `check-prettier` script to check that the js files are formatted with `prettier`.
24+
25+
```sh
26+
npm run check-prettier
27+
```
28+
29+
`prettier` can be run with the `prettier` script.
30+
31+
```sh
32+
npm run prettier
33+
```
34+
35+
## Linter
36+
37+
The `eslint` script runs `eslint` over the write-npmstat project.
38+
39+
```sh
40+
npm run eslint
41+
```

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ writenpmstat.datePeriod = "month";
2626
writenpmstat.writeNpmStat("2022", "2022-03");
2727
```
2828

29+
# Contributing
30+
31+
We welcome contributions to the project, visit our [contributing](https://github.com/veghdev/write-npmstat/blob/main/CONTRIBUTING.md) guide for further info.
32+
2933
# Contact
3034

3135
Join our [discussions](https://github.com/veghdev/write-npmstat/discussions) page if you have any questions or comments.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"prettier": "prettier -w ./*js ./src/*js",
99
"eslint": "eslint --fix ./*js ./src/*js",
10-
"format": "npm-run-all prettier eslint",
1110
"check-prettier": "prettier -c ./*js ./src/*js",
1211
"check-eslint": "eslint ./*js ./src/*js",
13-
"check-format": "npm-run-all check-prettier check-eslint",
14-
"check": "npm-run-all check-format",
12+
"check": "npm-run-all check-prettier check-eslint",
1513
"rollup": "rollup -c"
1614
},
1715
"repository": {

0 commit comments

Comments
 (0)