Skip to content

Commit

Permalink
[skyapi] refs fibercrypto#12 - Modify Makefile to add rules to build …
Browse files Browse the repository at this point in the history
…and test node

client
  • Loading branch information
stdevCbermudez committed Apr 12, 2019
1 parent 128b864 commit 5b59f4f
Show file tree
Hide file tree
Showing 4 changed files with 1,062 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.directory
tester/node_modules
tests/axios/node_modules
tests/node/node_modules
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

install: build-axios-client build-axios-tester ; ## Build libraries and tester
install: build-axios-client build-axios-tester build-node-client build-node-tester ; ## Build all libraries and tester

test: test-axios-client ; ## Test all clients
test: test-axios-client test-node-client ; ## Test all clients

test-axios-client: ## Test axios client
(cd ./tests/axios/ && npm run test )

test-node-client: ## Test node client
(cd ./tests/node/ && npm run test )

build-axios-client: ## Build axios client
(cd ./lib/skyapi/axios/ && npm install && npm run build)

build-axios-tester: ## Build tester
build-axios-tester: ## Build axios client tester
(cd ./tests/axios/ && npm install)

build-node-client: ## Build node client
(cd './lib/skyapi/node/' && npm install && npm run build)

build-node-tester: ## Build node client tester
(cd './tests/node/' && npm install)
37 changes: 37 additions & 0 deletions tests/axios/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b59f4f

Please sign in to comment.