-
Notifications
You must be signed in to change notification settings - Fork 11
/
.envrc
61 lines (47 loc) · 1.09 KB
/
.envrc
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
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
export DEVTOOLS_HOME="$(git rev-parse --show-toplevel)"
export MAC_CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
function mpm {
meteor npm $@
}
function start {
yarn devapp
}
function develop {
local BROWSER=${1-"chrome"}
echo "Starting Development mode for => ${BROWSER}"
yarn concurrently -n ext,app "webpack --config webpack/${BROWSER}.dev.js" "yarn devapp"
}
function watch {
local BROWSER=${1-"chrome"}
yarn webpack --config webpack/${BROWSER}.dev.js
}
function setup {
yarn
cd devapp || exit
yarn
}
function update-meteor {
cd devapp || exit
meteor update
cd ..
}
function package-version {
grep version <package.json |
head -1 |
awk -F: '{ print $2 }' |
sed 's/[", ]//g'
}
function build-for-browser {
local BROWSER=$1
local VERSION=$(package-version)
mkdir releases
yarn run build:${BROWSER}
cd extension/${BROWSER} || exit
zip -r "../../releases/meteor-devtools-evolved-${VERSION}.${BROWSER}.zip" -- *
cd - || exit
}
function build {
build-for-browser chrome
build-for-browser firefox
}