mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #1238 from erasche/client-builder
Ease the grunt uglify process
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
GRUNT_DOCKER_NAME:=galaxy/client-builder:16.01
|
||||
|
||||
all:
|
||||
@echo "This makefile is primarily used for building Galaxy's JS client. A sensible all target is not yet implemented."
|
||||
|
||||
npm-deps:
|
||||
cd client && npm install
|
||||
|
||||
grunt: npm-deps
|
||||
cd client && grunt
|
||||
|
||||
grunt-docker-image:
|
||||
docker build -t ${GRUNT_DOCKER_NAME} client
|
||||
|
||||
grunt-docker: grunt-docker-image
|
||||
docker run -it -v `pwd`:/data ${GRUNT_DOCKER_NAME}
|
||||
|
||||
clean-grunt-docker-image:
|
||||
docker rmi ${GRUNT_DOCKER_NAME}
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
cd /data/client && \
|
||||
npm install && \
|
||||
grunt
|
||||
@@ -0,0 +1,13 @@
|
||||
FROM digitallyseamless/nodejs-bower-grunt
|
||||
RUN mkdir /gx
|
||||
|
||||
COPY package.json /gx/package.json
|
||||
|
||||
RUN cd /gx && \
|
||||
npm install -g && \
|
||||
cd / && \
|
||||
rm -rf /gx
|
||||
|
||||
WORKDIR /data/client
|
||||
ADD ./.docker-build.sh /build.sh
|
||||
CMD ["/build.sh"]
|
||||
@@ -10,3 +10,16 @@ to provide relatively concrete answers for specific Galaxy development scenarios
|
||||
This can be done with either IPython/Jupyter or a plain python console, depending on your preferences::
|
||||
|
||||
python -i scripts/db_shell.py
|
||||
|
||||
... build Galaxy Javascript frontend client?
|
||||
--------------------------------------------
|
||||
|
||||
We've added a makefile which will let you do this. If you have nodejs and npm installed, you can simple run::
|
||||
|
||||
make grunt
|
||||
|
||||
If you prefer docker and aren't a JS developer primarily, you can run
|
||||
|
||||
make grunt-docker
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user