Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
50 lines (39 loc) · 998 Bytes

File metadata and controls

executable file
·
50 lines (39 loc) · 998 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e
if [[ -n "${GRANARY_DEBUG}" ]]; then
set -x
fi
DIR="$(dirname "${0}")/../"
function usage() {
echo -n \
"Usage: $(basename "$0")
Attempts to setup the project's development environment.
"
}
function generate_sbtopts() {
if host nexus.internal.azavea.com; then
echo "Generating .sbtopts"
pushd "${DIR}"
true >.sbtopts
echo "-Dsbt.override.build.repos=true" >>.sbtopts
echo "-Dsbt.repository.config=project/repositories" >>.sbtopts
popd
fi
}
function setup_elm() {
echo "Setting up frontend dependencies"
# make outside of the container to make sure that user owns elm-stuff
mkdir -p ./granary-ui/elm-stuff
npm install -g elm elm-format
}
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
if [ "${1:-}" = "--help" ]; then
usage
elif [ "${1:-}" = "--sbtopts" ]; then
generate_sbtopts
else
setup_elm
generate_sbtopts
./sbt bloopInstall
fi
fi
Morty Proxy This is a proxified and sanitized view of the page, visit original site.