-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdevelop
executable file
·48 lines (42 loc) · 1.13 KB
/
develop
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
#!/usr/bin/env bash
if [ $# -gt 0 ];then
# If "composer" is used, pass-thru to "composer"
# inside a new container
if [ "$1" == "composer" ]; then
shift 1
docker run -it --rm \
-v $(pwd):/opt \
-w /opt \
vessel/app \
composer "$@"
# If "npm" is used, run npm
# from our node container
# TO INSTALL FOR THIS PROJECT, RUN:
# ./develop npm install --unsafe-perm=true
elif [ "$1" == "npm" ]; then
shift 1
docker run -it --rm \
-v $(pwd):/opt \
-w /opt \
vessel/node \
npm "$@"
# If "yarn" is used, run yarn
# from our node container
elif [ "$1" == "yarn" ]; then
shift 1
docker run -it --rm \
-v $(pwd):/opt \
-w /opt \
vessel/node \
yarn "$@"
# If "gulp" is used, run gulp
# from our node container
elif [ "$1" == "gulp" ]; then
shift 1
docker run -it --rm \
-v $(pwd):/opt \
-w /opt \
vessel/node \
./node_modules/.bin/gulp "$@"
fi
fi