forked from Wizcorp/node-iap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
67 lines (48 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
##
# node-iap project Makefile
# description : Makefile to install this project and its dependencies along with other helpers
# author : Almir Kadric
# created on : 2014-10-29
##
##
# Global variables
##
# Set default shell
SHELL = /bin/bash
# Function for help
define helpText
######################################
### Node InAppPurchases ###
######################################
make install Install project dependencies
make dev Install & setup project & development dependencies
make test Runs all tests (shortcut for test-lint and test-unit).
make test-unit Run all unit tests
make test-lint Lint the entire project
endef
export helpText
##
# Make Targets
##
# List of target which should be run every time without caching
.PHONY: install dev test test-unit test-lint
# Default make target
%::
@echo "$$helpText"
Default :
@echo "$$helpText"
# Install target
install :
npm install --production
# Dev target
dev :
npm install
./sbin/lint.sh setup
# Test all
test : test-lint test-unit
# Unit test target
test-unit :
./node_modules/.bin/mocha -R spec --recursive ./tests
# Lint target
test-lint :
./sbin/lint.sh ${lintFilter}