orbit-db/Makefile
haad 3c6626f633 Fix browser examples
Use p2p-websocket-star addresses
Fix minified example: don't compress
Use non-minified ipfs build for browser examples
Add non-minified build files to browser examples
Update build
2017-12-10 14:10:24 +01:00

25 lines
527 B
Makefile

all: build
deps:
npm install
test: deps
npm run test
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 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/
rm package-lock.json
.PHONY: test build