Skip to content

Commit

Permalink
chore: upgrade build tools and dependencies (#98)
Browse files Browse the repository at this point in the history
test: add uuid to tests

build: update to jest 26 and upgrade tsdx

build: upgrade to parcel 2 for typescript demo

fix: use current version of react SDK in examples
  • Loading branch information
elvis-pn authored Jun 28, 2022
1 parent a3844cf commit b47b2cc
Show file tree
Hide file tree
Showing 16 changed files with 45,144 additions and 34,093 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ lib
.rts2_cache*
.cache

# No parcel stuff
.parcel-cache

# Runtime data
pids
*.pid
Expand Down
3 changes: 2 additions & 1 deletion examples/reactnative/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { PubNubProvider } from 'pubnub-react'

const pubnub = new PubNub({
subscribeKey: 'demo',
publishKey: 'demo'
publishKey: 'demo',
uuid: 'myuuid'
})

export const Application = () => (
Expand Down
30,096 changes: 21,182 additions & 8,914 deletions examples/reactnative/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/reactnative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"pubnub": "^4.27.3",
"pubnub-react": "^2.0.0-beta.4",
"pubnub": "^7.0.0",
"pubnub-react": "^3.0.0",
"react": "16.9.0",
"react-native": "0.61.5"
},
Expand All @@ -20,7 +20,7 @@
"@babel/runtime": "^7.6.2",
"@react-native-community/eslint-config": "^0.0.5",
"@types/jest": "^24.0.24",
"@types/pubnub": "^4.27.1",
"@types/pubnub": "^7.0.0",
"@types/react-native": "^0.60.25",
"@types/react-test-renderer": "16.9.1",
"@typescript-eslint/eslint-plugin": "^2.12.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
.cache
.parcel-cache
dist
6 changes: 6 additions & 0 deletions examples/typescript/.parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"]
}
}
2 changes: 1 addition & 1 deletion examples/typescript/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import PubNub from 'pubnub';
import { PubNubProvider, PubNubConsumer } from '../../../src/index';
import { PubNubProvider, PubNubConsumer } from 'pubnub-react';
import Chat from './Chat';
import MyRootComponent from './MyRootComponent';

Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

<body>
<div id="root"></div>
<script src="./index.tsx"></script>
<script src="./index.tsx" type="module"></script>
</body>
</html>
Loading

0 comments on commit b47b2cc

Please sign in to comment.