Skip to content

Commit

Permalink
* added docs folder for github pages
Browse files Browse the repository at this point in the history
* simple deploy script preparing files for github pages publishing
  • Loading branch information
ldgit committed Sep 9, 2018
1 parent b3517c9 commit b991c48
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist/**/*.js
docs/**/*.js
9 changes: 9 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tic-Tac-Toe</title>
</head>
<body>
<script type="text/javascript" src="main.484b7765e43e184366cd.js"></script></body>
</html>
31 changes: 31 additions & 0 deletions docs/main.484b7765e43e184366cd.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
"version": "1.0.0",
"description": "React intro tutorial (https://reactjs.org/tutorial/tutorial.html)",
"main": "index.js",
"homepage": "https://ldgit.github.io/react-tic-tac-toe/",
"scripts": {
"test": "mocha --require @babel/register",
"test:watch": "argus",
"build": "webpack --mode=development",
"build:prod": "webpack --mode=production",
"start": "webpack-dev-server --open --mode=development",
"lint": "eslint --ext .jsx,.js ./",
"test:all": "npm run lint && npm t"
"test:all": "npm run lint && npm t",
"deploy": "npm run test:all && npm run build:prod && rm -rf docs/* && cp -R dist/. docs/"
},
"author": "Danko Lučić",
"license": "MIT",
Expand Down

0 comments on commit b991c48

Please sign in to comment.