Skip to content

Commit

Permalink
Add gh-pages command
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-nguyen committed Oct 28, 2018
1 parent d6796c1 commit 90f4846
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
**.env*

/client/node_modules/
/client/public/bundle.js

/server/bin
/server/build/
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ deps:
bundle:
(cd ./client ; npm run build)

# Deploy to GH Pages
.PHONY: deploy
deploy:
make bundle
git subtree push --prefix client/public origin gh-pages

# Build and run Bumper in daemon mode
.PHONY: bumper
DATABASE_URL=https://bumperdevdb.firebaseio.com
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --hot --host 0.0.0.0",
"build": "NODE_ENV=production webpack",
"build": "NODE_ENV=production webpack --config webpack.prod.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "./node_modules/.bin/eslint . --ignore-pattern public/"
},
Expand Down

0 comments on commit 90f4846

Please sign in to comment.