Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build-prod
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tag-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# Build the Scalable Pixel Streaming Frontend Library and Example
- name: Build SPS Frontend
run: |
cd ./examples/typescript
cd ./examples/typescript
npm run build-all-prod

# Build the Scalable Pixel Streaming Frontend Docker image from the dist directories of the packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
working-directory: ./library
run: |
npm ci
npm run build-dev
npm run build

# install deps for Library and build for production
- name: Install and build library for production
Expand All @@ -45,7 +45,7 @@ jobs:
working-directory: ./examples/typescript
run: |
npm ci
npm run build-all-dev
npm run build-all

# install deps for Frontend and Library for and build both for production
- name: Install and build library and Frontend for production
Expand Down
27 changes: 27 additions & 0 deletions examples/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@
"description": "The typescript example for consuming the Scalable Pixel Streaming Frontend",
"main": "./src/index.ts",
"scripts": {
"build-dev": "npx webpack --config webpack.dev.js",
"build": "npx webpack --config webpack.dev.js",
"build-dev": "npm run build",
"build-prod": "npx webpack --config webpack.prod.js",
"watch": "npx webpack --watch",
"start": "npx webpack && open-cli ./dist/index.html",
"serve-dev": "webpack serve --config webpack.dev.js",
"serve": "webpack serve --config webpack.dev.js",
"serve-prod": "webpack serve --config webpack.prod.js",
"symlink": "npm link ../../library",
"build-all-dev": "cd ../../library && npm install && npm run build-dev && cd ../examples/typescript && npm run symlink && npm run build-dev",
"build-all-prod": "cd ../../library && npm install && npm run build-prod && cd ../examples/typescript && npm run symlink && npm run build-prod"
"build-all": "cd ../../library && npm install && npm run build && cd ../examples/typescript && npm run build",
"build-all-dev": "npm run build-all",
"build-all-prod": "cd ../../library && npm install && npm run build-prod && cd ../examples/typescript && npm run build-prod"
},
"author": "TensorWorks Pty Ltd",
"keywords": [],
"license": "MIT",
"dependencies": {
"@tensorworks/libspsfrontend": "file:../../library",
"dotenv": "^16.0.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ document.body.onload = function () {
// Logger.SetLoggerVerbosity(10);

// Create a config object. We default to sending the WebRTC offer from the browser as false, TimeoutIfIdle to true, AutoConnect to false and MaxReconnectAttempts to 0
const config = new Config({ useUrlParams: true, initialSettings: { OfferToReceive: false, TimeoutIfIdle: true, AutoConnect: false, MaxReconnectAttempts: 0 } });
const config = new Config({ useUrlParams: true, initialSettings: { BrowserSendOffer: false, TimeoutIfIdle: true, AutoConnect: false, MaxReconnectAttempts: 0 } });

// Handle setting custom signalling url from code or by querying url parameters (e.g. ?ss=ws://my.signaling.server).
{
Expand Down
Loading