Skip to content

Commit dc2f462

Browse files
committed
[cr] add contributing guide and publish scripts
1 parent d92f0f4 commit dc2f462

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing guide
2+
3+
1. Install dependencies
4+
5+
```
6+
npm i
7+
```
8+
9+
2. Run tests in watch mode
10+
11+
```
12+
npm run test:watch
13+
```
14+
15+
3. For any new features, add new tests

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"scripts": {
2828
"test": "jest",
2929
"test:watch": "jest --watch",
30-
"build": "esbuild src/index.js --bundle --platform=node --outfile=dist/index.js "
30+
"build": "esbuild src/index.js --bundle --platform=node --outfile=dist/index.js",
31+
"publish": "npm build && npm publish"
3132
}
3233
}

0 commit comments

Comments
 (0)