mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
Add make step to bundle the custom SimpleWebRTC
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
783e790e99
commit
06c160e494
2 changed files with 10 additions and 0 deletions
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue