Skip to content

Commit 74bd81d

Browse files
authored
Merge pull request #1 from Bandwidth/VAPI-2691_initial
VAPI-2691 Initial commit
2 parents ba94224 + 0302a66 commit 74bd81d

38 files changed

Lines changed: 11160 additions & 0 deletions

.github/draft_release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name-template: '$NEXT_MINOR_VERSION'
2+
tag-template: '$NEXT_MINOR_VERSION'
3+
categories:
4+
- title: 'Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: 'Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: 'Maintenance'
14+
label: 'chore'
15+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
16+
exclude-labels:
17+
- 'skip-changelog'
18+
template: |
19+
## Changes
20+
$CHANGES
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Draft Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
jobs:
10+
draft-release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
# Drafts your next Release notes as Pull Requests are merged
15+
- uses: release-drafter/release-drafter@v5
16+
with:
17+
config-name: draft_release.yml
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish-npm:
10+
# Only run if release is a prod release
11+
if: ${{ !github.event.release.prerelease }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Install Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '24'
19+
- name: npm install
20+
run: npm install
21+
- name: npm version and publish
22+
run: |
23+
npm version ${{ github.event.release.tag_name }} --no-git-tag-version
24+
npm publish --access public
25+
- name: Upload Standalone Bundle Asset
26+
uses: actions/upload-release-asset@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
upload_url: ${{ github.event.release.upload_url }}
31+
asset_path: ./dist/BandwidthRtc.bundle.js
32+
asset_name: BandwidthRtc.bundle.js
33+
asset_content_type: application/javascript

.github/workflows/unit_test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Unit Tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- name: Install Node.js
13+
uses: actions/setup-node@v5
14+
with:
15+
node-version: '24'
16+
check-latest: true
17+
- name: npm install
18+
run: npm install
19+
- name: npm test
20+
run: npm test
21+
- name: npm build
22+
run: npm run build

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
dist
3+
coverage
4+
.DS_Store
5+
.vscode
6+
src/**.js
7+
*.swp
8+
*.iml
9+
*.iws
10+
*.ipr
11+
.idea/

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github/
2+
coverage/
3+
BandwidthRtc.bundle.js
4+
*.iml
5+
.idea/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.github
2+
.vscode
3+
coverage
4+
dist
5+
node_modules
6+
webpack.common.js
7+
webpack.dev.js
8+
webpack.prod.js
9+
.bandwidth

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 160,
3+
"endOfLine": "auto"
4+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Bandwidth, Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)