Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 100802d

Browse files
author
Jeff
committed
Releasing v0.4.0.
1 parent fb56358 commit 100802d

File tree

59 files changed

+1567
-988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1567
-988
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424
yarn.lock
25+
26+
# Ensure our pubnub keys do not get checked in to github
27+
pubnub-keys.json

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
include:
1111
- stage: "application test & build"
1212
name: "Team Chat Reference Application"
13+
before_install:
14+
- |
15+
echo '{
16+
"publishKey": "${PROD_PUBLISH_KEY}",
17+
"subscribeKey": "${PROD_SUBSCRIBE_KEY}"
18+
}' >> ./src/config/pubnub-keys.json
1319
install:
1420
- npm install
1521
script:

README.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This repository contains code from the Team Chat Reference App hosted on [PubNub
1111

1212
## Prerequisites
1313

14-
### Sign Up for a PubNub Account
14+
### PubNub Account
1515

1616
If you don't already have an account, you can create one for free [here](https://dashboard.pubnub.com/).
1717

@@ -23,29 +23,24 @@ If you don't already have an account, you can create one for free [here](https:/
2323

2424
## Building the project
2525

26-
1. Clone the Github repository.
26+
1. Clone the GitHub repository.
2727

28-
```bash
29-
git clone git@github.com:pubnub/typescript-ref-app-team-chat.git
30-
```
28+
```bash
29+
git clone git@github.com:pubnub/typescript-ref-app-team-chat.git
30+
```
3131

32-
2. Install the project.
32+
1. Install the project.
3333

34-
```bash
35-
npm install
36-
```
34+
```bash
35+
cd typescript-ref-app-team-chat
36+
npm install
37+
```
3738

38-
2. Setup the project to load sample data related to users and spaces. Note that this step can be skipped if you have already loaded data into the application.
39+
1. Run the project in your local environment. You may be asked to input your PubNub keys and populate sample data if you are running the app for the first time.
3940

40-
```bash
41-
npm run setup
42-
```
43-
44-
3. Run the project in your local environment.
45-
46-
```bash
47-
npm start
48-
```
41+
```bash
42+
npm start
43+
```
4944

5045
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
5146

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"license": "MIT",
66
"private": true,
77
"dependencies": {
8-
"@reach/router": "^1.2.1",
9-
"@types/reach__router": "^1.2.6",
108
"@types/emoji-mart": "^2.11.0",
119
"@types/pubnub": "^4.0.7",
1210
"@types/react": "^16.9.4",
@@ -17,7 +15,7 @@
1715
"polished": "^3.4.1",
1816
"pubnub": "^4.27.0",
1917
"pubnub-react": "^2.0.0-beta.4",
20-
"pubnub-redux": "^0.1.16-alpha",
18+
"pubnub-redux": "^0.1.26-alpha",
2119
"react": "^16.9.0",
2220
"react-dom": "^16.9.0",
2321
"react-pose": "^4.0.8",
@@ -28,11 +26,10 @@
2826
"styled-components": "^4.4.0"
2927
},
3028
"scripts": {
31-
"start": "react-scripts start",
32-
"setup": "cd setup && node populate.js",
33-
"build": "react-scripts build",
34-
"test": "react-scripts test",
35-
"eject": "react-scripts eject"
29+
"start": "node setup/populate.js --quick-test && react-scripts start",
30+
"build": "node setup/populate.js --quick-test && react-scripts build",
31+
"test": "node setup/populate.js --quick-test && react-scripts test",
32+
"setup": "node setup/populate.js"
3633
},
3734
"eslintConfig": {
3835
"extends": "react-app"
@@ -63,6 +60,9 @@
6360
"babelMacros": {
6461
"styledComponents": {}
6562
},
63+
"engines": {
64+
"node": ">=8.0.0"
65+
},
6666
"devDependencies": {
6767
"@testing-library/jest-dom": "^4.0.0",
6868
"@testing-library/react": "^9.1.4",
@@ -73,7 +73,6 @@
7373
"file-system": "^2.2.2",
7474
"husky": "^3.0.8",
7575
"lint-staged": "^9.4.1",
76-
"node": "^12.12.0",
7776
"prettier": "^1.18.2",
7877
"react-scripts": "3.2.0",
7978
"readline": "^1.3.0",

0 commit comments

Comments
 (0)