forked from jaegertracing/jaeger-client-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (29 loc) · 1.06 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
-include crossdock/rules.mk
.PHONY: publish
publish: build-node
npm version $(shell ./scripts/version_prompt.sh)
# Make a pull request for this version.
# Follow internal instructions to publish npm through uber account.
# Update Changelog.md to relfect the newest version changes.
.PHONY: test
test: build-node
npm run flow
npm run lint
npm run test-all
npm run check-license
.PHONY: build-node
build-node: node_modules
rm -rf ./dist/
node_modules/.bin/babel --presets es2015 --plugins transform-class-properties --source-maps -d dist/src/ src/
node_modules/.bin/babel --presets es2015 --plugins transform-class-properties --source-maps -d dist/test/ test/
node_modules/.bin/babel --presets es2015 --plugins transform-class-properties --source-maps -d dist/crossdock/ crossdock/
cp -R ./test/thrift ./dist/test/thrift/
cp package.json ./dist/
cp -R ./src/jaeger-idl ./dist/src/
rm -rf ./dist/src/jaeger-idl/.git
cp -R ./src/thriftrw-idl ./dist/src/
.PHONY: node_modules
node_modules:
git submodule init -- ./src/jaeger-idl
git submodule update
npm install