File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,17 @@ function printUsage() {
35
35
go run ../archivist.go orphan json conf go
36
36
[[ $? -ne 0 ]] && exit 1
37
37
38
- go run ../archivist.go generate --outputDir=conf --pkg=conf --x-easyjson " $@ " json/* .json json/* .js
38
+ if ! [[ ` which easyjson` ]]; then
39
+ go get -u github.com/edwingeng/easyjson-alt/easyjson
40
+ [[ $? -ne 0 ]] && exit 1
41
+ fi
42
+
43
+ if [[ ` which node` ]]; then
44
+ go run ../archivist.go generate --outputDir=conf --pkg=conf --x-easyjson " $@ " ' json/*.json' ' json/*.js'
45
+ [[ $? -ne 0 ]] && exit 1
46
+ else
47
+ go run ../archivist.go generate --outputDir=conf --pkg=conf --x-easyjson " $@ " ' json/*.json'
48
+ [[ $? -ne 0 ]] && exit 1
49
+ fi
50
+
51
+ :
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ function printUsage() {
32
32
$colorful && tput setaf 7
33
33
}
34
34
35
+ if ! [[ ` which easyjson` ]]; then
36
+ go get -u github.com/edwingeng/easyjson-alt/easyjson
37
+ [[ $? -ne 0 ]] && exit 1
38
+ fi
39
+
35
40
WATCHER_CONF_GROUP=develop WATCHER_CONF_SUBGROUP=dolores ../../../cli/script/js2json.sh " ` pwd` /json"
36
41
echo
37
42
You can’t perform that action at this time.
0 commit comments