Remove code from bundling webrtc manually

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-12-16 12:01:33 +01:00
parent 1343d9c0b9
commit 5794a151d7
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA
3 changed files with 1 additions and 27 deletions

View file

@ -2,11 +2,6 @@
#name: check-builds
#
#steps:
# - name: check-simplewebrtc-bundle
# image: nextcloudci/node:node-7
# commands:
# - make npm-init
# - ./check-simplewebrtc-bundle.sh
# - name: check-vuejs-builds
# image: nextcloudci/node:node-7
# commands:

View file

@ -15,7 +15,7 @@ all: dev-setup build-js-production
dev-setup: clean-dev npm-init
dependabot: dev-setup npm-update build-js-production bundle-simplewebrtc
dependabot: dev-setup npm-update build-js-production
release: appstore create-tag
@ -47,15 +47,6 @@ clean:
clean-dev: clean
rm -rf node_modules
bundle-simplewebrtc:
# webrtc-adapter uses JavaScript features not supported by browserify,
# so the sources need to be transformed using babel to a compatible
# version of JavaScript.
# Its main module does no longer provide "module.exports", which is
# expected by the code using it, so it needs to be added back with a
# plugin.
npx browserify --standalone SimpleWebRTC --transform [ babelify --global --presets [ @babel/env ] --plugins [ add-module-exports ] ] js/simplewebrtc/simplewebrtc.js > js/simplewebrtc/bundled.js
create-tag:
git tag -a v$(version) -m "Tagging the $(version) release."
git push origin v$(version)
@ -78,9 +69,6 @@ appstore:
--exclude=.jscsrc \
--exclude=.jshintignore \
--exclude=js/**.js.map \
--include=js/simplewebrtc/bundled.js \
--exclude=js/simplewebrtc/*.js \
--exclude=js/tests \
--exclude=l10n/no-php \
--exclude=.l10nignore \
--exclude=Makefile \

View file

@ -1,9 +0,0 @@
#!/bin/bash
set -e
# Rebuild the bundled SimpleWebRTC
make bundle-simplewebrtc
git status
bash -c "[[ ! \"`git status --porcelain js/simplewebrtc/bundled.js`\" ]] || ( echo 'Uncommitted changes in bundled SimpleWebRTC' && exit 1 )"