From ffa72eb50fe2d8fc30fe5d0333aa02add33a0c9b Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Thu, 20 Jun 2019 21:23:38 +0200 Subject: [PATCH] launch and installation commands --- contribute.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/contribute.py b/contribute.py index 78803bb5..3ad81cc5 100644 --- a/contribute.py +++ b/contribute.py @@ -57,7 +57,6 @@ def main(date, name): else: click.echo(' > Slide deck already exists.') - # copy the Gruntfile if not os.path.isfile(os.path.join(fullPath, 'Gruntfile.coffee')): copyfile(os.path.join(rootDir, 'template', 'Gruntfile.coffee'), os.path.join(fullPath, 'Gruntfile.coffee')) @@ -66,6 +65,18 @@ def main(date, name): click.echo(' > Gruntfile already exists.') + # launch the presentation deck + if not os.path.exists(os.path.join(fullPath, 'node_modules')): + click.echo(' > Installing dependencies ... ') + os.system('npm install -g npm@latest grunt-cli generator-reveal') + os.system('npm install') + click.echo(' > All dependencies installed.') + else: + click.echo(' > All dependencies already installed.') + + # launch the server + os.system('grunt server') + def createSymlink(src, dst): if not os.path.islink(dst): os.symlink(src, dst) -- GitLab