Makefile 545 B

123456789101112131415161718192021222324
  1. # Usage:
  2. # make install: to download all dependencies
  3. # make: to recompile ES6 code to ES5
  4. # make clean: to clean up before leaving
  5. # make serve: to start web server on port 8888
  6. build: web/client/node_modules
  7. cd web/client; \
  8. yarn run build
  9. install:
  10. composer install
  11. cd web/client; \
  12. yarn
  13. serve:
  14. COMPOSER_PROCESS_TIMEOUT=0 composer run
  15. clean:
  16. # PHP side.
  17. rm -fr var/cache/* var/logs/* vendor
  18. touch var/cache/.gitkeep var/logs/.gitkeep
  19. # JS side.
  20. rm -fr web/client/node_modules web/client/lib/*
  21. touch web/client/lib/.gitkeep