Skip to content
Snippets Groups Projects
Commit ffa72eb5 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

launch and installation commands

parent a757b12f
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment