mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 12:47:56 +08:00
Add client build script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -48,4 +48,5 @@ server/app/web/templates/index\.html
|
||||
|
||||
*.egg-info
|
||||
dist/*
|
||||
build/*
|
||||
|
||||
|
||||
10
bin/build-client
Executable file
10
bin/build-client
Executable 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/
|
||||
Reference in New Issue
Block a user