2016-11-26 14:26:56 +01:00
|
|
|
all: build
|
2016-11-25 12:43:39 +01:00
|
|
|
|
|
|
|
deps:
|
2016-12-01 16:50:51 +01:00
|
|
|
npm install
|
2016-11-25 12:43:39 +01:00
|
|
|
|
2016-11-26 14:26:56 +01:00
|
|
|
test: deps
|
2019-07-18 09:28:17 +01:00
|
|
|
npm run test:all
|
2016-11-25 12:43:39 +01:00
|
|
|
|
2016-12-13 13:19:25 +01:00
|
|
|
build: test
|
2017-01-30 11:10:24 +02:00
|
|
|
mkdir -p examples/browser/lib/
|
2017-11-28 12:30:40 +01:00
|
|
|
npm run build
|
2017-01-30 11:10:24 +02:00
|
|
|
cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js
|
2017-03-31 10:54:56 +02:00
|
|
|
cp node_modules/ipfs/dist/index.min.js examples/browser/lib/ipfs.min.js
|
2017-12-10 13:38:56 +01:00
|
|
|
cp dist/orbitdb.js examples/browser/lib/orbitdb.js
|
2017-12-31 09:55:35 +02:00
|
|
|
cp dist/orbitdb.js.map examples/browser/lib/orbitdb.js.map
|
2017-12-10 13:38:56 +01:00
|
|
|
cp node_modules/ipfs/dist/index.js examples/browser/lib/ipfs.js
|
2016-11-25 12:43:39 +01:00
|
|
|
@echo "Build success!"
|
|
|
|
@echo "Output: 'dist/', 'examples/browser/'"
|
|
|
|
|
|
|
|
clean:
|
2017-03-31 10:54:56 +02:00
|
|
|
rm -rf orbitdb/
|
2016-11-25 12:43:39 +01:00
|
|
|
rm -rf node_modules/
|
2018-11-12 11:42:47 +01:00
|
|
|
|
|
|
|
clean-dependencies: clean
|
2019-04-07 08:43:01 -04:00
|
|
|
rm -f package-lock.json;
|
2018-11-12 11:42:47 +01:00
|
|
|
|
|
|
|
rebuild: | clean-dependencies build
|
2016-11-25 12:43:39 +01:00
|
|
|
|
2016-12-13 13:19:25 +01:00
|
|
|
.PHONY: test build
|