-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
72 lines (50 loc) · 1.72 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
68
69
70
71
72
all: build
install:
npm install
build: install
npm run build:platform
npm run build:ts
JEST=./node_modules/.bin/jest -w 1
FLUVIO_DEV=FLUVIO_DEV=$(shell uname | tr '[:upper:]' '[:lower:]')
RUST_ENVS=RUST_BACKTRACE=full RUST_LOG=fluvio_client_node=debug
test_all: build
$(RUST_ENVS) $(FLUVIO_DEV) $(JEST) --testNamePattern '^(?!MacOSCi).*'
test_macos_ci: build
$(RUST_ENVS) $(FLUVIO_DEV) $(JEST) --testNamePattern 'MacOSCi'
npm_lint:
npm run prettier:check
run_docs: install
npm run docs
pack:
npm pack
mv fluvio-client* /tmp
run_publish:
npm publish
clean:
rm -rf dist
example_npm_init:
fluvio topic create node-examples || true
cd examples && npm init -y && npm install -D typescript ts-node @types/node && npm install -S @fluvio/client --path ../
examples: example_produce example_list_topics example_create_topic \
example_find_topic
example_produce: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/produce.ts
example_consume: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/consume.ts
example_iterator: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/iterator.ts
example_list_topics: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/listTopics.ts
example_create_topic: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/createTopic.ts
example_delete_topic: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/deleteTopic.ts
example_find_topic: build example_npm_init
FLUVIO_DEV=1 npx ts-node ./examples/findTopic.ts
install-clippy:
rustup component add clippy --toolchain stable
check-clippy: install-clippy
cargo +stable clippy --all --all-features --all-targets -- \
-D warnings \
-A clippy::needless_question_mark \
-A clippy::upper_case_acronyms