Skip to content

Commit

Permalink
[skyfetch] refs #11 Install deps the fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Aug 8, 2019
1 parent 1601382 commit 20a4470
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ JS_INCLUDE= -I/usr/include/nodejs/src
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

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

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

test-node-client: ## Test node client
export HOST='https://staging.node.skycoin.net' && \
Expand Down Expand Up @@ -70,6 +69,9 @@ build-node-tester: ## Build node client tester
build-axios-tester: ## Build tester
(cd ./tests/axios/ && npm install)

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

configure: ## Configure build environment
set -ex
mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include
Expand Down
6 changes: 5 additions & 1 deletion lib/skyapi/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"build": "tsc --outDir dist/",
"prepare": "npm run build"
},
"dependencies": {
"portable-fetch": "^3.0.0"
},
"devDependencies": {
"typescript": "^2.4"
"@types/node": "^8.0.9",
"typescript": "^2.0"
}
}
9 changes: 8 additions & 1 deletion tests/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"devDependencies": {
"chai": "^4.2.0",
"libsky-fetch": "file:../../lib/skyapi/fetch",
"mocha": "^6.1.3"
"mocha": "^6.1.3",
"@types/node": "^8.0.14",
"browserify": "^14.4.0",
"ts-loader": "^2.3.0",
"tsify": "^3.0.1",
"typescript": "^2.4.1",
"typings": "^2.1.1",
"webpack": "^1.13.0"
}
}

0 comments on commit 20a4470

Please sign in to comment.