forked from googleapis/google-api-nodejs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (39 loc) · 1.17 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
.PHONY: build build-tools check check-samples check-licenses check-typescript clean coverage docs fix fix-samples fix-typescript generate install publish-docs test test-samples watch
PATH := $(shell npm bin):$(PATH)
build:
tsc -v && tsc -p .
build-tools:
tsc -p tsconfig.tools.json
check: check-typescript check-samples check-licenses
check-samples:
semistandard 'samples/**/*.js'
check-licenses:
jsgl --local .
check-typescript:
gts check
clean:
gts clean
coverage: build
nyc --cache mocha build/test -t 10000 -S -R spec --require intelli-espower-loader
nyc report --reporter=html
docs:
typedoc --out docs src && touch docs/.nojekyll
fix: fix-typescript fix-samples
fix-samples:
semistandard --fix 'samples/**/*.js'
fix-typescript:
gts fix
generate: build-tools
node build/src/scripts/generate.js
clang-format -i -style='{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}' src/apis/**/*.ts
install:
npm install
node_modules/.link:
npm link && npm link googleapis && touch $@
publish-docs:
gh-pages --dotfiles --dist docs --remote upstream
test: coverage check
test-samples: node_modules/.link build
mocha build/test/samples
watch:
tsc -p . --watch