Add client build script

This commit is contained in:
Charlotte Weaver
2018-07-06 15:59:20 -07:00
parent d937485034
commit 071c24d0f4
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@@ -48,4 +48,5 @@ server/app/web/templates/index\.html
*.egg-info
dist/*
build/*

10
bin/build-client Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
npm install --prefix client/ client
npm run --prefix client build
mkdir -p server/app/web/static/img
cp client/build/index.html server/app/web/templates/
cp -r client/build/static server/app/web/
cp client/build/favicon.png server/app/web/static/img
cp client/build/service-worker.js server/app/web/static/js/