mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-17 16:26:39 +03:00
8ba088a38f
We were not able to get our externs generated by the Closure compiler. There were many issues with the Closure-generated externs, including the order of the externs and the replacement of record types and enums with their underlying types. We made a few attempts to patch the compiler, but could not get our patches accepted upstream. This change introduces a new script to generate our externs from scratch. It uses a JavaScript parser called 'esprima'. Some interfaces need to be exported to the generated externs, but are not actually attached to the namespace by the compiler. For this, we introduce a new annotation. These are the currently-supported export annotations: - @export: truly exported (attached to namespace) by the compiler - @expose: truly exposed (not renamed) by the compiler - @exportDoc: considered part of the exports in the docs - @exportInterface: considered part of the exports in generated externs These annotations are now documented in docs/design/export.md Change-Id: I33bf7384889c14c9edb0fa5f11caa7c4f4d79af6
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"name": "shaka-player",
|
|
"description": "DASH/EME video player library",
|
|
"version": "2.0.0",
|
|
"homepage": "https://github.com/google/shaka-player",
|
|
"author": "Google",
|
|
"maintainers": [
|
|
{
|
|
"name": "Joey Parrish",
|
|
"email": "joeyparrish@google.com"
|
|
}
|
|
],
|
|
"devDependencies": {
|
|
"array-includes": "^3.0.2",
|
|
"es6-shim": "^0.35.2",
|
|
"esprima": "^3.1.3",
|
|
"htmlhint": "yaniswang/HTMLHint#152a114f",
|
|
"in-publish": "2.x",
|
|
"jasmine-ajax": "3.3.x",
|
|
"jasmine-core": "2.4.x",
|
|
"karma": "~1.1.2",
|
|
"karma-chrome-launcher": "~1.0.1",
|
|
"karma-coverage": "~1.1.1",
|
|
"karma-firefox-launcher": "~1.0.0",
|
|
"karma-ie-launcher": "~1.0.0",
|
|
"karma-jasmine": "~1.0.2",
|
|
"karma-jasmine-ajax": "~0.1.13",
|
|
"karma-opera-launcher": "~1.0.0",
|
|
"karma-safari-launcher": "~1.0.0",
|
|
"karma-spec-reporter": "~0.0.26",
|
|
"karma-webdriver-launcher": "~1.0.4",
|
|
"requirejs": "2.x",
|
|
"rimraf": "2.x",
|
|
"sprintf-js": "1.x",
|
|
"useragent": "^2.1.11"
|
|
},
|
|
"main": "dist/shaka-player.compiled.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/google/shaka-player.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/google/shaka-player/issues"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"prepublish": "in-publish && python ./build/checkversion.py && python ./build/all.py && python ./build/build.py --debug || not-in-publish"
|
|
}
|
|
}
|