forked from thebigredgeek/apollo-errors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 750 Bytes
/
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
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
OS_TYPE := linux
endif
ifeq ($(UNAME_S),Darwin)
OS_TYPE := osx
endif
.FORCE:
all: clean
tsc
clean: .FORCE
rimraf npm-debug.log dist
osx-syspackages: .FORCE
brew update
brew install yarn
linux-syspackages: .FORCE
sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get -y update
sudo apt-get install yarn
environment: .FORCE
@if [ "${OS_TYPE}" = "osx" ]; then \
make osx-syspackages; \
else \
make linux-syspackages; \
fi
dependencies: .FORCE
yarn
test: all
mocha
lint: .FORCE
eslint src