forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreaction
More file actions
executable file
·25 lines (25 loc) · 770 Bytes
/
reaction
File metadata and controls
executable file
·25 lines (25 loc) · 770 Bytes
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
#!/bin/bash
#
# Reaction Commerce CLI helpers
#
set -u
set -e
# by default runs settings/dev.settings.json
# customize by creating settings/settings.json
if [[ "$@" == "reset" ]]; then
bin/reset
elif [[ "$@" == "pull" ]]; then
git pull && meteor npm install && bin/clone-packages.sh
elif [[ "$@" == "install" ]]; then
# copy clone-packages.sh so that any directory
# can be specified for use in PACKAGE_DIRS config.
cp bin/clone-packages.sh /usr/local/bin/
# copy reaction so that you don't need ./
cp reaction /usr/local/bin/reaction && chmod + /usr/local/bin/reaction
bin/install
elif [[ "$@" == "test" ]]; then
VELOCITY_TEST_PACKAGES=1 meteor test-packages --port 3006 --driver-package velocity:html-reporter --velocity
else
bin/run "$@"
fi
exit