Skip to content

Commit

Permalink
Adds support for starting an http server
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
  • Loading branch information
chrissrogers committed Aug 10, 2017
1 parent d474b90 commit 1c45473
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
BIN = node_modules/.bin
WEBPACK = $(BIN)/webpack
KARMA = $(BIN)/karma
SERVER = $(BIN)/webpack-dev-server --inline --hot --port 8020 --https
SERVER = $(BIN)/webpack-dev-server --inline --hot --port 8020
SRC = index.js $(shell find lib -type f -name '*.js')
TESTS = $(shell find test -type f -name '*.js')

server: build
ifdef RECURLY_JS_CERT
@$(SERVER) --cert $(RECURLY_JS_CERT) --key $(RECURLY_JS_KEY)
@$(SERVER) --https --cert $(RECURLY_JS_CERT) --key $(RECURLY_JS_KEY)
else
@$(SERVER)
@$(SERVER) --https
endif

server-http: build
@$(SERVER)

build: build/recurly.min.js

build/recurly.js: index.js $(SRC) node_modules
Expand Down

0 comments on commit 1c45473

Please sign in to comment.