Skip to content

Commit 3f83dee

Browse files
committed
add file list for npm, run prettier, setup lint-staged
1 parent 61026bb commit 3f83dee

File tree

6 files changed

+673
-21
lines changed

6 files changed

+673
-21
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
node_modules
2+
3+
# ignore files output from npm pack
24
*shim*.tgz
5+
6+
# ignore IDE files
7+
.idea

.lintstagedrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
'{,.,**/}*.{md,json,js,ts,tsx}': ['prettier --write'],
3+
};

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ npm pack
6565
cd ../MyApp
6666
npm install ../react-native-webrtc-web-shim/react-native-webrtc-web-shim-*.tgz
6767
```
68-
69-
Please make sure to run `npm run prettier && npm run lint` before opening a pull request.

index.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import {
2-
RTCPeerConnection,
3-
RTCIceCandidate,
4-
RTCSessionDescription,
5-
MediaStream,
6-
MediaStreamTrack,
7-
mediaDevices,
8-
permissions,
9-
registerGlobals,
10-
RTCView
2+
RTCPeerConnection,
3+
RTCIceCandidate,
4+
RTCSessionDescription,
5+
MediaStream,
6+
MediaStreamTrack,
7+
mediaDevices,
8+
permissions,
9+
registerGlobals,
10+
RTCView,
1111
} from './src/react-native-webrtc-web-shim';
1212

1313
export {
14-
RTCPeerConnection,
15-
RTCIceCandidate,
16-
RTCSessionDescription,
17-
MediaStream,
18-
MediaStreamTrack,
19-
mediaDevices,
20-
permissions,
21-
registerGlobals,
22-
RTCView,
14+
RTCPeerConnection,
15+
RTCIceCandidate,
16+
RTCSessionDescription,
17+
MediaStream,
18+
MediaStreamTrack,
19+
mediaDevices,
20+
permissions,
21+
registerGlobals,
22+
RTCView,
2323
};

0 commit comments

Comments
 (0)