The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. #
  3. # Build the bubble jar
  4. #
  5. # Usage:
  6. #
  7. # bbuild [no-clean] [debug|full|prod]
  8. #
  9. # no-clean : if present, do not clean the `target` directory before building
  10. #
  11. # debug : a debug build, does not include anything else in the jar
  12. # full : a production build, creates a fat jar in `bubble-server/target/bubble-server-VERSION-full.jar`
  13. # prod : a production build, creates a slimmer jar in `bubble-server/target/bubble-server-VERSION-prod.jar`
  14. #
  15. # If debug/full/prod is not specified, the default is prod.
  16. #
  17. SCRIPT="${0}"
  18. SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
  19. . "${SCRIPT_DIR}"/bubble_common
  20. CLEAN="clean"
  21. PROFILE=""
  22. if [[ -n "${1}" ]] ; then
  23. if [[ "${1}" == "no-clean" ]] ; then
  24. CLEAN=""
  25. shift
  26. fi
  27. if [[ "${1}" == "debug" ]] ; then
  28. PROFILE=""
  29. elif [[ "${1}" == "full" ]] ; then
  30. PROFILE="-Pproduction-full"
  31. elif [[ "${1}" == "prod" ]] ; then
  32. PROFILE="-Pproduction"
  33. else
  34. die "Invalid argument: ${1}"
  35. fi
  36. else
  37. # default
  38. PROFILE="-Pproduction"
  39. fi
  40. mvn -DskipTests=true -Dcheckstyle.skip=true ${PROFILE} ${CLEAN} package