Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
use gh-pages for publishing build
Browse files Browse the repository at this point in the history
  • Loading branch information
tdumitrescu committed May 11, 2018
1 parent ead20ae commit bf519e3
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
83 changes: 83 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"build": "webpack",
"publish": "npm run build && node publish-static.js",
"start": "webpack-dev-server --inline",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -26,6 +27,7 @@
"eslint-loader": "1.9.0",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.11",
"gh-pages": "1.1.0",
"html-webpack-plugin": "3.2.0",
"js-beautify": "1.7.5",
"postcss-loader": "2.1.5",
Expand Down
2 changes: 2 additions & 0 deletions publish-static.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const ghpages = require(`gh-pages`);
ghpages.publish(`build`, err => err && console.error(err));

0 comments on commit bf519e3

Please sign in to comment.