orbit-db/Makefile

30 lines
659 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:all
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
2019-04-07 08:43:01 -04:00
rm -f package-lock.json;
rebuild: | clean-dependencies build
.PHONY: test build