Allow to deploy website

This commit is contained in:
Julien Eluard 2019-07-10 13:26:24 +02:00
parent 42eb11fa7a
commit 87229a577e
4 changed files with 202 additions and 888 deletions

View File

@ -13,10 +13,10 @@ dev:
# requires export NODE_OPTIONS=--max_old_space_size=4096
yarn run dev
deploy-website: install compile
deploy: install build
$(eval VERSION = $(shell git rev-parse --short HEAD))
$(eval MESSAGE = 'Deploying \#$(VERSION)')
./node_modules/gh-pages/bin/gh-pages.js --dotfiles --message ${MESSAGE} --dist resources/public
npx gh-pages --dotfiles --message ${MESSAGE} --dist dist
clean:
rm -rf node_modules/ dist/ yarn.lock

View File

@ -2,7 +2,7 @@ A simplistic UI to publish sticker packs.
# Setup
yarn
make init
## Local dev env

View File

@ -19,7 +19,7 @@
},
"scripts": {
"dev": "parcel public/index.html --host 127.0.0.1.xip.io --https",
"build": "parcel build public/index.html"
"build": "parcel build public/index.html --public-url /sticker-packs-publisher/"
},
"eslintConfig": {
"extends": "react-app"

1082
yarn.lock

File diff suppressed because it is too large Load Diff