browser/components/loop/standalone/Makefile
author Nicolas Perriault <nperriault@gmail.com>
Wed, 16 Jul 2014 15:15:08 +0100
changeset 216314 a73ed0f644d6cddae4828fc8844655d2df399271
parent 209650 e8a128be7a6df2d27f5a305d5a716f5842a3d93e
child 219767 f5798e8faec58c0df2e48a1ca54ae32ab361a756
permissions -rw-r--r--
Bug 1020448 - Add Loop pending call timeout for the link clicker UI. r=Standard8,ui-review=dhenein

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

LOOP_SERVER_URL := $(shell echo $${LOOP_SERVER_URL-http://localhost:5000})
LOOP_PENDING_CALL_TIMEOUT := $(shell echo $${LOOP_PENDING_CALL_TIMEOUT-20000})
NODE_LOCAL_BIN=./node_modules/.bin

install:
	@npm install

test:
	@echo "Not implemented yet."

lint:
	@$(NODE_LOCAL_BIN)/jshint *.js content test

runserver: config
	@node server.js

frontend:
	@echo "Not implemented yet."

config:
	@echo "var loop = loop || {};" > content/config.js
	@echo "loop.config = loop.config || {};" >> content/config.js
	@echo "loop.config.serverUrl          = '`echo $(LOOP_SERVER_URL)`';" >> content/config.js
	@echo "loop.config.pendingCallTimeout = `echo $(LOOP_PENDING_CALL_TIMEOUT)`;" >> content/config.js