1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5NPM_VERSION := $(shell npm --version 2>/dev/null)
6BOWER_VERSION := $(shell bower --version 2>/dev/null)
7
8check:
9ifndef NPM_VERSION
10	$(error npm not found. Install from nodejs.org or see README)
11endif
12ifndef BOWER_VERSION
13	@echo "bower not found. Installing:";
14	npm install -g bower
15endif
16
17update: check
18	bower update
19	npm update
20
21test: check
22	./node_modules/karma/bin/karma start
23
24single-test: check
25	./node_modules/karma/bin/karma start --single-run
26
27.PHONY: check update test single-test
28