Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. BUILD_DIR = build
  2. CLEANCSS = ./node_modules/.bin/cleancss
  3. DEPLOY_DIR = libs
  4. LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet/
  5. NODE_SASS = ./node_modules/.bin/node-sass
  6. NPM = npm
  7. OUTPUT_DIR = .
  8. STYLES_BUNDLE = css/all.bundle.css
  9. STYLES_DESTINATION = css/all.css
  10. STYLES_MAIN = css/main.scss
  11. WEBPACK = ./node_modules/.bin/webpack
  12. all: update-deps compile deploy clean
  13. # FIXME: there is a problem with node-sass not correctly installed (compiled)
  14. # a quick fix to make sure it is installed on every update
  15. # the problem appears on linux and not on macosx
  16. update-deps:
  17. $(NPM) update && $(NPM) install node-sass
  18. compile:
  19. $(WEBPACK) -p
  20. clean:
  21. rm -fr $(BUILD_DIR)
  22. deploy: deploy-init deploy-appbundle deploy-lib-jitsi-meet deploy-css deploy-local
  23. deploy-init:
  24. mkdir -p $(DEPLOY_DIR)
  25. deploy-appbundle:
  26. cp \
  27. $(BUILD_DIR)/app.bundle.min.js \
  28. $(BUILD_DIR)/app.bundle.min.map \
  29. $(BUILD_DIR)/external_api.min.js \
  30. $(BUILD_DIR)/external_api.min.map \
  31. $(OUTPUT_DIR)/analytics.js \
  32. $(DEPLOY_DIR)
  33. deploy-lib-jitsi-meet:
  34. cp \
  35. $(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.js \
  36. $(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.map \
  37. $(LIBJITSIMEET_DIR)/connection_optimization/external_connect.js \
  38. $(DEPLOY_DIR)
  39. deploy-css:
  40. $(NODE_SASS) $(STYLES_MAIN) $(STYLES_BUNDLE) && \
  41. $(CLEANCSS) $(STYLES_BUNDLE) > $(STYLES_DESTINATION) ; \
  42. rm $(STYLES_BUNDLE)
  43. deploy-local:
  44. ([ ! -x deploy-local.sh ] || ./deploy-local.sh)
  45. source-package:
  46. mkdir -p source_package/jitsi-meet/css && \
  47. cp -r *.js *.html connection_optimization favicon.ico fonts images libs sounds LICENSE lang source_package/jitsi-meet && \
  48. cp css/all.css source_package/jitsi-meet/css && \
  49. (cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
  50. rm -rf source_package