Little niceties around development process.
This commit is contained in:
18
Makefile
18
Makefile
@ -1,7 +1,15 @@
|
||||
deploy:
|
||||
-rm -r dist
|
||||
mkdir dist
|
||||
cp flashcards.* dist
|
||||
git describe --always --tags | xargs --replace=INSERTED -- sed -i -e 's/%VERSION%/INSERTED/' dist/*
|
||||
deploy: clean build
|
||||
aws s3 sync dist s3://flashcards.jdbernard.com
|
||||
rm -r dist
|
||||
|
||||
serve-local:
|
||||
(cd dist && python -m SimpleHTTPServer &)
|
||||
./makewatch build
|
||||
|
||||
build: flashcards.*
|
||||
-mkdir dist
|
||||
cp flashcards.* dist
|
||||
git describe --always --dirty --tags | xargs --replace=INSERTED -- sed -i -e 's/%VERSION%/INSERTED/' dist/*
|
||||
|
||||
clean:
|
||||
-rm -r dist
|
||||
|
Reference in New Issue
Block a user