Add TS building in makefile; yarn run build now just runs HOME=/root go build -v -ldflags="-s -w" -o dist/bin/checkCertificate src/go/checkCertificate/checkCertificate.go
parent
9544e231ee
commit
36f7660afd
7
Makefile
7
Makefile
|
@ -1,8 +1,10 @@
|
|||
# Builds TypeScript & Go
|
||||
|
||||
check_certificate_files := $(wildcard src/go/checkCertificate/*.go)
|
||||
check_certificate_signatures_files := $(wildcard src/go/checkCertSignatures/*.go)
|
||||
storage_files := $(wildcard src/go/storage/*.go)
|
||||
|
||||
all: check_certificate check_cert_signatures storage
|
||||
all: check_certificate check_cert_signatures storage typescript
|
||||
|
||||
check_certificate:
|
||||
HOME=/root go build -v -ldflags="-s -w" -o dist/bin/checkCertificate ${check_certificate_files}
|
||||
|
@ -18,3 +20,6 @@ storage:
|
|||
HOME=/root go build -v -ldflags="-s -w" -o dist/bin/storage ${storage_files}
|
||||
@chmod 740 dist/bin/storage
|
||||
file dist/bin/storage
|
||||
|
||||
typescript:
|
||||
tsc -p ./tsconfig.json
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"main": "dist/Client.js",
|
||||
"scripts": {
|
||||
"lint": "eslint ./ --ext ts --fix",
|
||||
"build": "tsc -p ./tsconfig.json && make",
|
||||
"build": "make",
|
||||
"lint-find": "eslint ./ --ext ts"
|
||||
},
|
||||
"author": "Library of Code sp-us Engineering Team",
|
||||
|
|
Loading…
Reference in New Issue