forked from glamrock/cryptocat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·40 lines (34 loc) · 1.25 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
chrome:
@rm -f release/cryptocat-chrome.zip
@cd src/core/ && zip -q -r9 ../../release/cryptocat-chrome.zip * -x "*/\.*" -x "\.*"
@/bin/echo "[Cryptocat] Chrome build available in release/"
firefox:
@rm -f release/cryptocat-firefox.xpi
@cp -r src/core/* src/firefox/chrome/content/data/
@cd src/firefox/ && zip -q -r9 ../../release/cryptocat-firefox.xpi * -x "*/\.*" -x "\.*"
@rm -r src/firefox/chrome/content/data/*
@/bin/echo "[Cryptocat] Firefox build available in release/"
safari:
@rm -rf src/cryptocat.safariextension
@cp -R src/core src/cryptocat.safariextension
@cp -R src/safari/* src/cryptocat.safariextension
@/bin/echo "[Cryptocat] Safari extension packaged for testing."
mac:
@rm -rf src/mac/htdocs
@cp -R src/core src/mac/htdocs
@/bin/echo "[Cryptocat] Mac app packaged for testing."
tests:
@/bin/echo -n "[Cryptocat] Running tests... "
@`/usr/bin/which npm` install
@node_modules/.bin/mocha --ui exports --reporter spec test/core/js/*.test.js
lint:
@node_modules/.bin/jshint --verbose --config .jshintrc \
src/core/js/cryptocat.js \
src/core/js/lib/multiParty.js \
src/core/js/lib/elliptic.js \
src/core/js/lib/salsa20.js \
src/core/js/etc/*.js \
src/standaloneServer.js \
test/testBase.js \
test/core/js/*.js
all: lint tests