Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
dependabot-preview[bot] 1b382a1dd0 Bump @babel/preset-env from 7.5.0 to 7.5.4
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.5.0 to 7.5.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.5.0...v7.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-15 15:39:27 +02:00
Joas Schilling e1f7b8595b
Merge pull request #1992 from nextcloud/dependabot/npm_and_yarn/vue/babel/core-7.5.4
Bump @babel/core from 7.5.0 to 7.5.4
2019-07-15 14:20:08 +02:00
dependabot-preview[bot] 5e5cae9370 Bump @babel/core from 7.5.0 to 7.5.4
Bumps [@babel/core](https://github.com/babel/babel) from 7.5.0 to 7.5.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.5.0...v7.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-15 08:22:01 +02:00
Daniel Calviño Sánchez 3d392853dd Make build system compatible with /compile bot
The /compile bot first installs the NPM packages with "npm init" and
then performs the build with "npm run build", which executes the command
defined in "scripts->build" in "package.json".

Currently "npm init" does not install all the NPM packages needed by
Talk; it is necessary to run it both in the root folder and in the
"/vue" folder. Due to this "make npm-init" needs to be run from the
build script to install all the needed packages before performing the
actual build.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-12 16:36:31 +02:00
Daniel Calviño Sánchez ab7f97c011 Fix "module.exports" no longer available in WebRTC adapter 7.2.5
Since 7.2.5 the "main" property in the "package.json" of WebRTC adapter
points to an ES6 file which does not provide "module.exports" but
"exports.default". Due to this uses of "var adapter =
require('webrtc-adapter');" now fail, as the properties of the module
are loaded in "adapter.default" instead of in "adapter". To restore the
previous and expected behaviour a Babel plugin is now used to also add
"module.exports" if "exports.default" exists.

As WebRTC adapter still provides an ES5 file an alternative solution
would have been to alias "webrtc-adapter" to that file with
'--transform [ aliasify --global --aliases [ --webrtc-adapter
"webrtc-adapter/dist/adapter_core5.js" ] ]'.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-11 15:06:17 +02:00
Joas Schilling 1990ec858c
Update all packages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-08 11:58:43 +02:00
Daniel Calviño Sánchez 64828d50d4 Use shared Browserslist config for Babel in root
Browserslist is used by Babel, which in turn is used in Talk to bundle
the SimpleWebRTC code with its dependencies (like WebRTC adapter). Until
recently, in the server its configuration was got from the Babel config,
but now it is stated in the "package.json" file. However, it is not
hardcoded, but provided through a new NPM module,
"browserslist-config-nextcloud". Browserslist gets its configuration
from the "package.json" in current or parent directories, so if
SimpleWebRTC was bundled and the "spreed" directory was a subdirectory
of the "server" directory of Nextcloud Browserslists got its
configuration from the "package.json" file in the server. In that case
the bundle failed because "browserslist-config-nextcloud" was not part
of the modules installed for Talk development.

To prevent that, now "browserslist-config-nextcloud" is a development
dependency of Talk. Also, for consistency,
"browserslist-config-nextcloud" is now always used when bundling
SimpleWebRTC, so the result is the same whether the Talk directory is a
subdirectory of the server or not when performing the bundle.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-03 12:53:54 +02:00
Joas Schilling 53e60df4fb
Update all packages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-02 13:36:01 +02:00
Joas Schilling 6d4fae261a
Update all NPM packages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-05-13 12:42:49 +02:00
Daniel Calviño Sánchez dd19a43ccd Remove JavaScript test configuration and dependencies
Currently there are no JavaScript unit tests, so the related stuff can
be removed and added later if/when needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-05-08 11:31:04 +02:00
Daniel Calviño Sánchez 29138d3560 Bump Babel from 7.3.4 to 7.4.4
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-05-08 10:42:34 +02:00
Joas Schilling 30e55c4de9
Increase version
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-02 11:39:44 +02:00
Julius Härtl 0b4e6045c0
Adapt new library version
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-27 10:44:21 +01:00
Daniel Calviño Sánchez 9f1212ab10
Replace RTCPeerConnection wrapper with standard RTCPeerConnection
Most features of the RTCPeerConnection wrapper are not used, so the
wrapper can be replaced by the standard RTCPeerConnection plus some code
to handle offers and answers.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:32 +01:00
Daniel Calviño Sánchez 06c160e494
Add make step to bundle the custom SimpleWebRTC
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:31 +01:00
Daniel Calviño Sánchez b8cbd171ca
Add WebRTC adapter and other SimpleWebRTC dependencies
The WebRTC adapter and the other added dependencies will be bundled
together with a custom version of SimpleWebRTC (to be added in following
commits) in a single file.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:27 +01:00
Daniel Calviño Sánchez 241dda266c Add Handlebars to the development dependencies
Dependencies declared in "package.json" are installed locally, so the
call to the handlebars script must be updated accordingly.

To ensure that Handlebars is installed before using it the Make step to
compile the templates now depends on the step to setup the development
environment.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-21 11:25:41 +01:00
Christoph Wurst 108ca00c16
add karma/jasmine config for js unit testing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2016-10-18 15:22:47 +02:00