From e84dfb5809c02c8a323d15b6b7de6b92b2e5ead2 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 15 May 2020 15:24:30 +0100 Subject: [PATCH] Added eV build script --- openflexure_microscope/install.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 openflexure_microscope/install.py diff --git a/openflexure_microscope/install.py b/openflexure_microscope/install.py new file mode 100644 index 00000000..e73037cc --- /dev/null +++ b/openflexure_microscope/install.py @@ -0,0 +1,14 @@ +from pynpm import NPMPackage +import os + +dir_path = os.path.dirname(os.path.realpath(__file__)) +pkg_path = os.path.join(dir_path, "api", "static", "package.json") + +pkg = NPMPackage(pkg_path) + +def install(): + pkg.install() + +def build(): + pkg.install() + pkg.run_script('build') \ No newline at end of file