forked from node-opcua/node-opcua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrfy.bat
More file actions
16 lines (10 loc) · 726 Bytes
/
brfy.bat
File metadata and controls
16 lines (10 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
REM make sure to install browserify and minifyjs
REM npm i -g browserify minifyjs
SET OPTIONS=--mangle toplevel --reserved '$,require,exports' --comments --preamble "// * Copyright 2014-2015 NodeOPCUA"
SET "NODE_PATH=%CD%"
MKDIR dist
REM CALL browserify --bare bin\simple_server.js --exclude usage --exclude memcpy --exclude node-expat --exclude ursa --exclude x509 --list
CALL browserify --bare bin\simple_server.js --exclude spawn-sync --exclude usage --exclude memcpy --exclude node-expat --exclude ursa --exclude x509 > tmp\tmp.js
type tmp\tmp.js | minifyjs %OPTIONS% -m -o dist/simple_server.min.js
REM you can now launch the standalone version of simple_server
REM node dist/simple_server.min.js