forked from orbitdb/orbitdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 738 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
all: build
deps:
npm install
test: deps
npm run test:all
npx validate-maintainers orbit-db --match --ci
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.min.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
rm -rf examples/browser/lib
rebuild: | clean-dependencies build
.PHONY: test build