Skip to content

Commit

Permalink
Add now.json, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaspayot committed Feb 1, 2019
1 parent 6f23b2d commit 64a59d3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Tic Tac Toe

A simple Tic Tac Toe game powered with React, from the official [tutorial](https://reactjs.org/tutorial/tutorial.html).<br>
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
A simple Tic Tac Toe game powered with React, inspired from the official [tutorial](https://reactjs.org/tutorial/tutorial.html).

- Bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
- State management with `react-redux`
- Basic "AI" with minimax algorithm

## Demo

Play on https://tic-tac-toe-plajvpp0c.now.sh/

## Available Scripts

Expand Down
18 changes: 18 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 2,
"name": "tic-tac-toe",
"builds": [{ "src": "package.json", "use": "@now/static-build" }],
"routes": [
{ "src": "^/static/(.*)", "dest": "/static/$1" },
{ "src": "^/favicon.ico", "dest": "/favicon.ico" },
{ "src": "^/asset-manifest.json", "dest": "/asset-manifest.json" },
{ "src": "^/manifest.json", "dest": "/manifest.json" },
{
"src": "^/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/service-worker.js"
},
{ "src": "^/precache-manifest.(.*)", "dest": "/precache-manifest.$1" },
{ "src": "^/(.*)", "dest": "/index.html" }
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"now-build": "react-scripts build && mv build dist"
},
"browserslist": [
">0.2%",
Expand Down

0 comments on commit 64a59d3

Please sign in to comment.