From 68814bf8513b821a102b1ac1dc4f0bafc90ab804 Mon Sep 17 00:00:00 2001 From: Andreas Hildebrandt Date: Tue, 27 Sep 2016 15:21:47 +0200 Subject: [PATCH] Add bower and npm steps to conda build --- .bowerrc | 2 +- bower.json | 2 +- conda.recipe/bld.bat | 3 +++ conda.recipe/build.sh | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.bowerrc b/.bowerrc index 60ddffa..bb1d187 100644 --- a/.bowerrc +++ b/.bowerrc @@ -1 +1 @@ -{"directory": "mermaid/static/nb-mermaid/lib"} +{"directory": "nb-mermaid/static/nb-mermaid/lib"} diff --git a/bower.json b/bower.json index dcfdfb2..0774c34 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "nb-mermaid", - "version": "0.1.1", + "version": "0.2.0", "authors": [ "Nicholas Bollweg " ], diff --git a/conda.recipe/bld.bat b/conda.recipe/bld.bat index cda7700..55d0962 100644 --- a/conda.recipe/bld.bat +++ b/conda.recipe/bld.bat @@ -1,3 +1,6 @@ +bower install +npm install +npm run build "%PYTHON%" setup.py install "%PREFIX%\Scripts\jupyter-nbextension.exe" install nb-mermaid --py --sys-prefix if errorlevel 1 exit 1 diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh index baac369..0b34ee6 100644 --- a/conda.recipe/build.sh +++ b/conda.recipe/build.sh @@ -1,2 +1,5 @@ +bower install +npm install +npm run build "${PYTHON}" setup.py install "${PREFIX}/bin/jupyter-nbextension" install nb-mermaid --py --sys-prefix