orbit-db/Makefile

30 lines
690 B
Makefile
Raw Normal View History

2016-11-26 14:26:56 +01:00
all: build
deps:
npm install
2016-11-26 14:26:56 +01:00
test: deps
npm run test
build: test
mkdir -p examples/browser/lib/
2017-11-28 12:30:40 +01:00
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
if [ -a package-lock.json ]; then rm package-lock.json; fi;
rebuild: | clean-dependencies build
.PHONY: test build