diff --git a/contribute.py b/contribute.py index 78803bb5a04b48b411d42d39d9a54bd899360b68..3ad81cc535138bc361374b57e73aea8d8684e30f 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)