c-kzg-4844/bindings/node.js/Makefile

23 lines
366 B
Makefile
Raw Normal View History

2022-11-04 19:06:06 +00:00
all: clean build format test bundle
clean:
yarn node-gyp clean
rm -rf build
2022-11-03 19:57:46 +00:00
rm -f *.node
rm -f dist/kzg.node
2022-11-03 19:57:46 +00:00
rm -f *.a
rm -f *.o
2022-11-04 06:14:11 +00:00
build: kzg.cxx kzg.ts package.json binding.gyp Makefile
2022-11-04 07:13:02 +00:00
cd ../../src; make lib
yarn node-gyp rebuild
2022-11-04 05:52:34 +00:00
test: build
yarn jest
format:
yarn prettier --write .
bundle:
yarn rollup --config rollup.config.js --bundleConfigAsCjs