Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
LANG := en_US.UTF-8
SHELL := /bin/bash
.SHELLFLAGS := --norc --noprofile -e -u -o pipefail -c
.DEFAULT_GOAL := help

nvm_brew = /usr/local/opt/nvm/nvm.sh
ifneq ("$(wildcard $(nvm_brew))", "")
nvm_sh = $(nvm_brew)
endif
nvm_default = $(HOME)/.nvm/nvm.sh
ifneq ("$(wildcard $(nvm_default))", "")
nvm_sh = $(nvm_default)
endif
define npm
@$(eval npm_args=$(1))
bash --norc --noprofile -e -o pipefail -l -c "source $(nvm_sh) && nvm exec npm $(npm_args)"
endef
export NODE_ENV := "development"

.PHONY: npm-install
npm-install: ## Run 'npm install'
$(call npm, install)

.PHONY: clean
clean: ## Remove generated files
$(RM) -r \
node_modules

.PHONY: help
help: ## Show Help
@grep -E '^[a-zA-Z0-9_\-\/]+%?:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "%-20s %s\n", $$1, $$2}' | sort
2 changes: 1 addition & 1 deletion packages/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const wsRpcEndpoints: RPCEndpoint[] = chains.ethereum.getRPCEndpointsByProtocol(

You can also load configuration based on `$NODE_ENV` environment variable:
```typescript
import * as config from "config"
import * as config from "@streamr/config"

const chains: Chains = config.Chains.loadFromNodeEnv()
```
Expand Down
13 changes: 0 additions & 13 deletions packages/config/package-lock.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/config/release-npm-update-version-package-json.bash
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ fi

sed -i '' -e 's/"version": ".*",$/"version": "'"$version"'",/g' package.json
git add package.json
make npm-install
git add package-lock.json
make npm-install -C ../..
git add ../../package-lock.json
2 changes: 0 additions & 2 deletions packages/config/src/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@
},
"binance": {
"id": 56,
"rpcHttpUrl": "",
"rpcWsUrl": "",
"rpcEndpoints": [
{
"url": "https://bsc-dataseed.binance.org"
Expand Down