-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
335 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const typescript = require("rollup-plugin-typescript2"); | ||
const commonjs = require("@rollup/plugin-commonjs"); | ||
const replace = require("@rollup/plugin-replace"); | ||
const pkg = require("./package.json"); | ||
const dotenv = require("dotenv"); | ||
|
||
dotenv.config({ | ||
path: `../../.env`, | ||
}); | ||
|
||
const peerDependencies = [...Object.keys(pkg.peerDependencies || {})]; | ||
|
||
const plugins = [ | ||
replace({ | ||
preventAssignment: true, | ||
// jslib-media uses global.navigator for some gUM calls, replace these | ||
delimiters: [" ", "."], | ||
values: { "global.navigator.mediaDevices": " navigator.mediaDevices." }, | ||
}), | ||
commonjs(), | ||
typescript({ | ||
tsconfig: "tsconfig.build.json", | ||
}), | ||
]; | ||
|
||
module.exports = [ | ||
// Esm build of lib, to be used with bundlers | ||
{ | ||
input: "src/index.ts", | ||
|
||
output: [ | ||
{ | ||
format: "esm", // set ES modules | ||
dir: "dist", // indicate not create a single-file | ||
}, | ||
], | ||
plugins, | ||
external: [...peerDependencies], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "./model"; | ||
export * from "./utils"; | ||
export * from "./webrtc"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "./connectionStatusConstants"; | ||
export * from "./protocol"; | ||
export * from "./RtcStream"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export * from "./bandwidthTestUtils"; | ||
export * from "./getHandler"; | ||
export * from "./ipRegex"; | ||
export * from "./Logger"; | ||
export * from "./mediaSettings"; | ||
export * from "./optimalBitrate"; | ||
export * from "./ReconnectManager"; | ||
export * from "./ServerSocket"; | ||
export * from "./transportSettings"; | ||
export * from "./urls"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export * from "./stats/IssueMonitor"; | ||
export * from "./stats/PerformanceMonitor"; | ||
export * from "./stats/StatsMonitor"; | ||
export * from "./stats/StatsMonitor/metrics"; | ||
export * from "./stats/StatsMonitor/peerConnectionTracker"; | ||
export * from "./BandwidthTester"; | ||
export * from "./bugDetector"; | ||
export * from "./constants"; | ||
export * from "./mediaConstraints"; | ||
export * from "./MediaDevices"; | ||
export * from "./P2pRtcManager"; | ||
export * from "./RtcManagerDispatcher"; | ||
export * from "./rtcManagerEvents"; | ||
export * from "./rtcrtpsenderHelper"; | ||
export * from "./rtcStatsService"; | ||
export * from "./sdpModifier"; | ||
export * from "./Session"; | ||
export * from "./SfuV2Parser"; | ||
export * from "./statsHelper"; | ||
export * from "./VegaConnection"; | ||
export * from "./VegaMediaQualityMonitor"; | ||
export * from "./VegaMicAnalyser"; | ||
export * from "./VegaMicAnalyserTools"; | ||
export * from "./VegaRtcManager"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"emitDeclarationOnly": false, | ||
"noEmit": false, | ||
"outDir": "dist", | ||
"removeComments": true | ||
}, | ||
"exclude": ["src/stories", "src/**/*.spec.ts", "src/lib/__mocks__"] | ||
} |
Oops, something went wrong.