-
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.
* chore(videojs.dev): add vite setup for videojs.dev package * chore: add prepare deploy script --------- Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
- Loading branch information
1 parent
e016531
commit 0317536
Showing
21 changed files
with
1,074 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,8 @@ bower_components | |
|
||
build/Release | ||
|
||
deploy | ||
|
||
# Dependency directories | ||
|
||
node_modules/ | ||
|
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,22 @@ | ||
/* eslint-disable no-console */ | ||
import { cp, mkdir } from 'node:fs'; | ||
|
||
const copyApiReferences = (pckg) => { | ||
cp(`packages/${pckg}/dist-api-reference`, `deploy/api-references/${pckg}`, { recursive: true }, (err) => { | ||
if (err) { | ||
console.log(`Failed to copy ${pckg} api reference dist. See error: `, err); | ||
} | ||
}); | ||
}; | ||
|
||
mkdir('deploy', () => { | ||
cp('packages/videojs.dev/dist', 'deploy/', { recursive: true }, (err) => { | ||
if (err) { | ||
console.log(`Failed to copy videojs.dev dist. See error: `, err); | ||
} | ||
}); | ||
|
||
copyApiReferences('dash-parser'); | ||
copyApiReferences('hls-parser'); | ||
copyApiReferences('playback'); | ||
}); |
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
Oops, something went wrong.