mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
Fix dependency installation (#209)
* Fix local js dependency installation * Fix wording * Fix test
This commit is contained in:
parent
75d1cb42e8
commit
c7a9ceee3c
2 changed files with 10 additions and 5 deletions
13
Makefile
13
Makefile
|
|
@ -11,17 +11,22 @@ ifndef DEP
|
|||
@curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
endif
|
||||
|
||||
@echo "==> installing CLI dependencies"
|
||||
@echo "==> installing go dependencies"
|
||||
@dep ensure
|
||||
.PHONY: install-cli
|
||||
.PHONY: install-go
|
||||
|
||||
install-js:
|
||||
ifndef NPM
|
||||
$(error npm is not installed)
|
||||
endif
|
||||
|
||||
@echo "==> installing web dependencies"
|
||||
@(cd ${GOPATH}/src/github.com/dnote/dnote/web && npm install --unsafe-perm)
|
||||
@echo "==> installing js dependencies"
|
||||
|
||||
ifeq ($(CI), true)
|
||||
@(cd ${GOPATH}/src/github.com/dnote/dnote/web && npm install --unsafe-perm=true)
|
||||
else
|
||||
@(cd ${GOPATH}/src/github.com/dnote/dnote/web && npm install)
|
||||
endif
|
||||
.PHONY: install-js
|
||||
|
||||
## test
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ func CreateMockStripeBackend(ts *httptest.Server) stripe.Backend {
|
|||
stripeMockBackend := stripe.GetBackendWithConfig(
|
||||
stripe.APIBackend,
|
||||
&stripe.BackendConfig{
|
||||
URL: ts.URL + "/v1",
|
||||
URL: ts.URL,
|
||||
HTTPClient: ts.Client(),
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue