-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md.tmpl
101 lines (70 loc) · 3.08 KB
/
README.md.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
> _👷🏽 TODO: This project is made with [publish-ts](https://github.com/trcps/publish-ts), read the docs to learn more._
> _👷🏽 TODO: Read all the sections marked with "👷🏽 TODO", do them, and remove them from this README._
<div align="right">
[](https://bundlejs.com/?q={{ tmplr.package_name }})
[](https://www.npmjs.com/package/{{ tmplr.package_name }})
[]({{ tmplr.repo_url }}/actions/workflows/coverage.yml)
</div>
<img src="./logo-dark.svg#gh-dark-mode-only" height="42px"/>
<img src="./logo-light.svg#gh-light-mode-only" height="42px"/>
# {{ tmplr.package_name }}
{{ tmplr.package_description }}
```js
// a nice code example here
// would be pretty nice!
import { {{ tmplr.package_name | camelCase }} } from '{{ tmplr.package_name }}'
console.log({{ tmplr.package_name | camelCase }}().msg)
```
<br>
# Contents
- [Contents](#contents)
- [Installation](#installation)
- [Usage](#usage)
- [Contribution](#contribution)
<br>
# Installation
[Node](https://nodejs.org/en/):
```bash
npm i {{ tmplr.package_name }}
```
Browser / [Deno](https://deno.land):
```js
import { {{ tmplr.package_name | camelCase }} } from 'https://esm.sh/{{ tmplr.package_name }}'
```
> _👷🏽 TODO: add the most important necessary imports from {{ tmplr.package_name }} here._
<br>
# Usage
> _👷🏽 TODO: explain in details what {{ tmplr.package_name }} does._
```js
// perhaps with some nice code examples.
import { {{ tmplr.package_name | camelCase }} } from '{{ tmplr.package_name }}'
console.log({{ tmplr.package_name | camelCase }}().msg)
```
<br>
# Contribution
You need [node](https://nodejs.org/en/), [NPM](https://www.npmjs.com) to start and [git](https://git-scm.com) to start.
```bash
# clone the code
git clone {{ tmplr.clone_url }}
```
```bash
# install stuff
npm i
```
Make sure all checks are successful on your PRs. This includes all tests passing, high code coverage, correct typings and abiding all [the linting rules]({{ tmplr.repo_url }}/blob/main/.eslintrc). The code is typed with [TypeScript](https://www.typescriptlang.org), [Jest](https://jestjs.io) is used for testing and coverage reports, [ESLint](https://eslint.org) and [TypeScript ESLint](https://typescript-eslint.io) are used for linting. Subsequently, IDE integrations for TypeScript and ESLint would make your life much easier (for example, [VSCode](https://code.visualstudio.com) supports TypeScript out of the box and has [this nice ESLint plugin](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)), but you could also use the following commands:
```bash
# run tests
npm test
```
```bash
# check code coverage
npm run coverage
```
```bash
# run linter
npm run lint
```
```bash
# run type checker
npm run typecheck
```