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