Add make step to bundle the custom SimpleWebRTC

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2019-03-07 21:23:09 +01:00 committed by Joas Schilling
parent 783e790e99
commit 06c160e494
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA
2 changed files with 10 additions and 0 deletions

View file

@ -34,6 +34,12 @@ install-npm-deps-dev:
compile-handlebars-templates: dev-setup
bash compile-handlebars-templates.sh
bundle-simplewebrtc: dev-setup
# webrtc-adapter uses JavaScript features not supported by browserify,
# so the sources need to be transformed using babel to a compatible
# version of JavaScript.
npx browserify --standalone SimpleWebRTC --transform [ babelify --global --presets [ @babel/env ] ] js/simplewebrtc/simplewebrtc.js > js/simplewebrtc/bundled.js
dev-setup: install-npm-deps-dev
appstore: clean install-deps

View file

@ -13,7 +13,11 @@
"author": "",
"license": "AGPL-3.0",
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"attachmediastream": "^2.1.0",
"babelify": "^10.0.0",
"browserify": "^16.2.3",
"handlebars": "^4.0.12",
"hark": "^1.2.3",
"jasmine": "^2.5.2",