Skip to content

Commit 21fb308

Browse files
committed
Add serve for now deployment
1 parent a28dfda commit 21fb308

File tree

5 files changed

+238
-103
lines changed

5 files changed

+238
-103
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
4+
node_modules
55

66
# testing
7-
/coverage
7+
coverage
88

99
# production
10-
/build
10+
build
1111

1212
# misc
1313
.DS_Store

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<p align="center"><a href="https://medium.com/@notrab/getting-started-with-create-react-app-redux-react-router-redux-thunk-d6a19259f71f"><img src="https://i.imgur.com/PATsTx2.png" title="View tutorial" alt="React, React Router, Redux and Redux Thunk" width="900"></a></p>
22

3-
[![Dependency Status](https://dependencyci.com/github/notrab/create-react-app-redux/badge)](https://dependencyci.com/github/notrab/create-react-app-redux)
4-
53
* Tutorial: [Getting started with create-react-app, Redux, React Router & Redux Thunk](https://medium.com/@notrab/getting-started-with-create-react-app-redux-react-router-redux-thunk-d6a19259f71f)
6-
* Example: [View on Heroku](https://cra-redux-router-thunk.herokuapp.com/) 🙌
4+
* [Demo](https://create-react-app-redux.now.sh) 🙌
75

86
## Installation
97

@@ -19,4 +17,4 @@ yarn
1917
yarn start
2018
```
2119

22-
This boilerplate is built using [create-react-app](https://github.com/facebookincubator/create-react-app) so you will want to read the User Guide for more goodies.
20+
This boilerplate is built using [create-react-app](https://github.com/facebook/create-react-app) so you will want to read the User Guide for more goodies.

now.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"alias": "create-react-app-redux.now.sh"
3+
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"private": true,
3-
"homepage": "https://notrab.github.io/create-react-app-redux",
3+
"homepage": "https://create-react-app-redux.now.sh",
44
"scripts": {
5-
"predeploy": "npm run build",
6-
"deploy": "gh-pages -d build",
5+
"deploy": "now && now alias",
76
"start": "react-scripts start",
7+
"now-start": "serve -s ./build",
88
"build": "react-scripts build",
99
"test": "react-scripts test --env=jsdom",
1010
"eject": "react-scripts eject",
@@ -15,7 +15,6 @@
1515
"react-scripts": "1.1.4"
1616
},
1717
"dependencies": {
18-
"gh-pages": "1.2.0",
1918
"react": "16.4.1",
2019
"react-dom": "16.4.1",
2120
"react-redux": "5.0.7",
@@ -24,6 +23,7 @@
2423
"react-router-redux": "5.0.0-alpha.6",
2524
"redux": "4.0.0",
2625
"redux-thunk": "2.3.0",
27-
"sanitize.css": "6.0.0"
26+
"sanitize.css": "6.0.0",
27+
"serve": "^9.2.0"
2828
}
2929
}

0 commit comments

Comments
 (0)