Browse Source

dev: add Brewfile

For macOS, you can install all dependencies with `brew bundle`
Matt Robenolt 7 years ago
parent
commit
7378b1c3ed
2 changed files with 10 additions and 1 deletions
  1. 6 0
      Brewfile
  2. 4 1
      Makefile

+ 6 - 0
Brewfile

@@ -0,0 +1,6 @@
+brew 'nodejs'
+brew 'openssl'
+brew 'postgresql'
+brew 'python'
+brew 'redis'
+brew 'yarn'

+ 4 - 1
Makefile

@@ -3,7 +3,7 @@ MAKEFLAGS += --jobs=$(CPUS)
 NPM_ROOT = ./node_modules
 STATIC_DIR = src/sentry/static/sentry
 
-develop-only: update-submodules install-python install-yarn
+develop-only: update-submodules install-brew install-python install-yarn
 
 develop: setup-git develop-only
 	@echo ""
@@ -17,6 +17,9 @@ install-yarn:
 	# See: https://github.com/karma-runner/karma-phantomjs-launcher/issues/120#issuecomment-262634703
 	node ./node_modules/phantomjs-prebuilt/install.js
 
+install-brew:
+	@hash brew 2> /dev/null && brew bundle || (echo '! Homebrew not found, skipping system dependencies.')
+
 install-python:
 	# must be executed serialially
 	$(MAKE) install-python-base