Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: bump video.js version to 7.21.1 in demo files
- Loading branch information
1 parent
3520164
commit 9613501
Showing
14 changed files
with
85 additions
and
257 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 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 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 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 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 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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
/** | ||
* Update video.js version in demo files. | ||
* | ||
* @since 3.0.0 | ||
*/ | ||
|
||
const replace = require('replace-in-file'); | ||
const path = require('path'); | ||
|
||
const OLD_VERSION = "video.js@7.18.1"; | ||
const NEW_VERSION = "video.js@7.20.1"; | ||
|
||
const options = { | ||
files: path.resolve(__dirname, '..', 'demo') + '/**/*.html', | ||
from: new RegExp(OLD_VERSION, 'g'), | ||
to: NEW_VERSION, | ||
dry: false | ||
}; | ||
|
||
console.log(); | ||
console.log(`Updating from ${OLD_VERSION} to ${NEW_VERSION} in ${path.relative('.', options.files)}`); | ||
console.log(); | ||
|
||
replace(options) | ||
.then(results => { | ||
let changes = false; | ||
results.forEach(item => { | ||
if (item.hasChanged) { | ||
console.log("Updated " + path.relative('.', item.file)); | ||
changes = true; | ||
} | ||
}); | ||
if (!changes) { | ||
console.log("No files updated."); | ||
} | ||
}) | ||
.catch(error => { | ||
console.error('Error occurred:', error); | ||
}); | ||
/** | ||
* Update video.js version in demo files. | ||
* | ||
* @since 3.0.0 | ||
*/ | ||
|
||
const replace = require('replace-in-file'); | ||
const path = require('path'); | ||
|
||
const OLD_VERSION = "video.js@7.20.1"; | ||
const NEW_VERSION = "video.js@7.21.1"; | ||
|
||
const options = { | ||
files: path.resolve(__dirname, '..', 'demo') + '/**/*.html', | ||
from: new RegExp(OLD_VERSION, 'g'), | ||
to: NEW_VERSION, | ||
dry: false | ||
}; | ||
|
||
console.log(); | ||
console.log(`Updating from ${OLD_VERSION} to ${NEW_VERSION} in ${path.relative('.', options.files)}`); | ||
console.log(); | ||
|
||
replace(options) | ||
.then(results => { | ||
let changes = false; | ||
results.forEach(item => { | ||
if (item.hasChanged) { | ||
console.log("Updated " + path.relative('.', item.file)); | ||
changes = true; | ||
} | ||
}); | ||
if (!changes) { | ||
console.log("No files updated."); | ||
} | ||
}) | ||
.catch(error => { | ||
console.error('Error occurred:', error); | ||
}); |
Oops, something went wrong.