orbit-db/Makefile
shamb0t e636629cf9 add multiple tabs in browser test
call tests in ci yml
2019-07-22 15:27:22 +01:00

30 lines
659 B
Makefile

all: build
deps:
npm install
test: deps
npm run test:all
build: test
mkdir -p examples/browser/lib/
npm run build
cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js
cp node_modules/ipfs/dist/index.min.js examples/browser/lib/ipfs.min.js
cp dist/orbitdb.js examples/browser/lib/orbitdb.js
cp dist/orbitdb.js.map examples/browser/lib/orbitdb.js.map
cp node_modules/ipfs/dist/index.js examples/browser/lib/ipfs.js
@echo "Build success!"
@echo "Output: 'dist/', 'examples/browser/'"
clean:
rm -rf orbitdb/
rm -rf node_modules/
clean-dependencies: clean
rm -f package-lock.json;
rebuild: | clean-dependencies build
.PHONY: test build