forked from marcoancona/dav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 906 Bytes
/
Makefile
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
# Windows:
# .\node_modules\.bin\browserify .\lib\index.js -o .\dav.js --standalone dav -t [ babelify --presets [ @babel/preset-env ] --plugins [ @babel/plugin-transform-classes @babel/plugin-transform-runtime ] ]
build: node_modules
rm -rf dav.js
./node_modules/.bin/browserify ./lib/index.js -o dav.js \
--standalone dav \
-t [ babelify --presets [ @babel/preset-env ] \
--plugins [ @babel/plugin-transform-classes @babel/plugin-transform-runtime ] ]
node_modules: package.json
npm install
.PHONY: clean
clean:
rm -rf *.zip SabreDAV build coverage dav.* node_modules test/integration/server/SabreDAV
.PHONY: test
test: test-unit
.PHONY: test-unit
test-unit: node_modules
./node_modules/.bin/mocha -u tdd --require @babel/register test/unit
.PHONY: toc
toc: node_modules
./node_modules/.bin/doctoc CONTRIBUTING.md
./node_modules/.bin/doctoc HISTORY.md
./node_modules/.bin/doctoc README.md