get-starter-templates.sh 682 B

123456789101112131415
  1. #!/bin/bash
  2. yes | rm -Rf starter-templates/**
  3. cp -R ../starter-templates/starter-template-webpack starter-templates/
  4. cp -R ../starter-templates/starter-template-basic-javascript starter-templates/
  5. cp -R ../starter-templates/starter-template-basic-typescript starter-templates/
  6. yes | rm -Rf starter-templates/**/.git
  7. yes | rm -Rf starter-templates/**/node_modules
  8. yes | rm -Rf starter-templates/**/dist
  9. # It requieres the node_modules/@phasereditor2d libraries at the startup
  10. mkdir -p starter-templates/starter-template-webpack/node_modules/
  11. cp -R ../starter-templates/starter-template-webpack/node_modules/@phasereditor2d starter-templates/starter-template-webpack/node_modules/