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 # requires export NODE_OPTIONS=--max_old_space_size=4096
yarn run dev yarn run dev
deploy-website: install compile deploy: install build
$(eval VERSION = $(shell git rev-parse --short HEAD)) $(eval VERSION = $(shell git rev-parse --short HEAD))
$(eval MESSAGE = 'Deploying \#$(VERSION)') $(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: clean:
rm -rf node_modules/ dist/ yarn.lock rm -rf node_modules/ dist/ yarn.lock

View File

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

View File

@ -19,7 +19,7 @@
}, },
"scripts": { "scripts": {
"dev": "parcel public/index.html --host 127.0.0.1.xip.io --https", "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": { "eslintConfig": {
"extends": "react-app" "extends": "react-app"

1082
yarn.lock

File diff suppressed because it is too large Load Diff