diff --git a/Makefile b/Makefile index 78b4da2..3167a68 100644 --- a/Makefile +++ b/Makefile @@ -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' && \ @@ -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 diff --git a/lib/skyapi/fetch/package.json b/lib/skyapi/fetch/package.json index e6266bf..ebf7d7f 100644 --- a/lib/skyapi/fetch/package.json +++ b/lib/skyapi/fetch/package.json @@ -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" } } diff --git a/tests/fetch/package.json b/tests/fetch/package.json index f8201b2..4db5531 100644 --- a/tests/fetch/package.json +++ b/tests/fetch/package.json @@ -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" } }