forked from node-opcua/node-opcua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
test-cov: istanbul coveralls codeclimate
istanbul:
istanbul cover -x "tmp/**" packages/run_all_mocha_tests.js
coveralls: istanbul
cat ./coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js --exclude tmp
# note a CODECLIMATE_REPO_TOKEN must be specified as an environment variable.
codeclimate: istanbul
codeclimate-test-reporter < ./coverage/lcov.info
# literate_programming stuff
LP= "../node_modules/.bin/literate-programming"
LP_WIN= "..\\node_modules\\.bin\\literate-programming.cmd"
examples:
( cd documentation ; $(LP) creating_a_server.md )
( cd documentation ; $(LP) creating_a_client.md )
( cd documentation ; $(LP) create_a_weather_station.md )
( cd documentation ; $(LP) server_with_da_variables.md )
( cd documentation ; $(LP) server_with_method.md )
# construct the API javascript documentation
doc: examples
mkdir -p tmptmp/autogenerated
node code_gen/makedoc.js > tmptmp/autogenerated/a.js
autodoc tmptmp/autogenerated/a.js
# jsdoc -v tmptmp/autogenerated/a.js lib/nodeid.js -d=tmptmp/api_doc_js_doc
yuidoc
doc1:
node node_modules\yuidocjs\lib\cli.js
# node node_modules\yuidocjs\lib\cli.js -t node_modules/yuidoc-bootstrap-theme -H node_modules/yuidoc-bootstrap-theme/helpers/helpers.js
yuidoc:
npm install yuidocjs -g
build_tools:
npm install minifyjs -g
npm install browserify -g
build:
brfy.bat
ug:
node -e 'var NodeUglifier= require("node-uglifier");(new NodeUglifier("bin/simple_server.js")).uglify().exportToFile("a.js");'