forked from yandex-ui/noscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 1.01 KB
/
Makefile
File metadata and controls
46 lines (33 loc) · 1.01 KB
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
41
42
43
44
45
46
NPM_BIN=$(CURDIR)/node_modules/.bin
export NPM_BIN
# сборка для тестов и npm
prepare: yate dist
# сборка для npm
dist: node_modules
mkdir -p dist
make dist-client
make dist-node
dist-client: node_modules
$(NPM_BIN)/borschik -i build/src.client.js -o dist/noscript.js -m no
$(NPM_BIN)/borschik -i build/src.client.js -o dist/noscript.min.js -m yes
dist-node: node_modules
$(NPM_BIN)/borschik -i build/src.server.js -o dist/noscript.module.js -m no
# сбока yate для тестов
yate: test/tests.yate.js
# публикация npm
npm-publish: dist
npm publish
test/tests.yate.js: test/tests.yate yate/noscript.yate node_modules
$(NPM_BIN)/yate $< > $@
node_modules: package.json
npm install
touch node_modules
test: node_modules yate
npm test
gh-pages:
git clone -b gh-pages git@github.com:yandex-ui/noscript.git gh-pages
jsdoc: gh-pages
$(MAKE) -C gh-pages
jsdoc-publish: gh-pages
$(MAKE) -C gh-pages publish
.PHONY: dist dist-client dist-node jsdoc jsdoc-publish test yate