Skip to content

Commit

Permalink
chore: update generator version and use @videojs/vhs-utils (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Aug 21, 2019
1 parent 07bd668 commit 7985794
Show file tree
Hide file tree
Showing 8 changed files with 1,626 additions and 2,372 deletions.
3,819 changes: 1,595 additions & 2,224 deletions package-lock.json

Large diffs are not rendered by default.

54 changes: 21 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,23 @@
}
],
"scripts": {
"prebuild": "npm-run-all clean test-data",
"build": "npm-run-all -p build:*",
"build-test": "cross-env-shell TEST_BUNDLE_ONLY=1 'npm run build'",
"build-prod": "cross-env-shell NO_TEST_BUNDLE=1 'npm run build'",
"build-test-data": "node scripts/m3u8.js",
"build": "npm-run-all -s clean build-test-data -p build:*",
"build:js": "rollup -c scripts/rollup.config.js",
"clean": "shx rm -rf ./dist ./test/dist",
"postclean": "shx mkdir -p ./dist ./test/dist",
"docs": "npm-run-all docs:*",
"docs:api": "jsdoc src -g plugins/markdown -r -d docs/api",
"docs:toc": "doctoc README.md",
"clean": "shx rm -rf ./dist ./test/dist && shx mkdir -p ./dist ./test/dist",
"lint": "vjsstandard",
"server": "karma start scripts/karma.conf.js --singleRun=false --auto-watch",
"prepublishOnly": "npm-run-all build-prod && vjsverify --verbose",
"start": "npm-run-all -p server watch",
"pretest": "npm-run-all lint build",
"test-data": "node scripts/m3u8.js",
"test": "karma start scripts/karma.conf.js",
"server": "karma start scripts/karma.conf.js --singleRun=false --auto-watch",
"test": "npm-run-all lint build-test && karma start scripts/karma.conf.js",
"posttest": "shx cat test/dist/coverage/text.txt",
"update-changelog": "conventional-changelog -p videojs -i CHANGELOG.md -s",
"preversion": "npm test",
"version": "is-prerelease || npm run update-changelog && git add CHANGELOG.md",
"update-changelog": "conventional-changelog -p videojs -i CHANGELOG.md -s",
"watch": "npm-run-all -p watch:*",
"watch:js": "npm run build:js -- -w",
"prepublishOnly": "npm run build && vjsverify"
"watch:js": "npm run build:js -- -w"
},
"keywords": [
"videojs",
Expand All @@ -68,30 +64,22 @@
"test/"
],
"dependencies": {
"@babel/runtime": "^7.5.5",
"@videojs/vhs-utils": "^1.0.0",
"global": "^4.3.2"
},
"devDependencies": {
"conventional-changelog-cli": "^2.0.22",
"conventional-changelog-videojs": "^3.0.0",
"doctoc": "^1.4.0",
"husky": "^2.5.0",
"jsdoc": "https://github.com/BrandonOCasey/jsdoc#feat/plugin-from-cli",
"karma": "^4.1.0",
"lint-staged": "^8.2.1",
"not-prerelease": "^1.0.1",
"npm-merge-driver-install": "^1.1.1",
"npm-run-all": "^4.1.5",
"pkg-ok": "^2.3.1",
"rollup": "^1.16.2",
"shx": "^0.3.2",
"sinon": "^7.3.2",
"videojs-generate-karma-config": "^5.3.0",
"videojs-generate-rollup-config": "^3.2.0",
"videojs-generator-verify": "^1.2.0",
"rollup": "^1.19.4",
"@videojs/generator-helpers": "~1.2.0",
"karma": "^4.0.0",
"sinon": "^7.2.2",
"videojs-generate-karma-config": "~5.3.1",
"videojs-generator-verify": "~2.0.0",
"videojs-generate-rollup-config": "~5.0.1",
"videojs-standard": "^8.0.3"
},
"generator-videojs-plugin": {
"version": "7.3.2"
"version": "7.7.3"
},
"browserslist": [
"defaults",
Expand All @@ -108,7 +96,7 @@
"git add"
],
"README.md": [
"npm run docs:toc",
"doctoc --notitle",
"git add"
]
}
Expand Down
7 changes: 6 additions & 1 deletion scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ const generate = require('videojs-generate-rollup-config');
// see https://github.com/videojs/videojs-generate-rollup-config
// for options
const options = {
input: 'src/index.js'
input: 'src/index.js',
externals(defaults) {
defaults.module.push('@videojs/vhs-utils');

return defaults;
}
};
const config = generate(options);

Expand Down
2 changes: 1 addition & 1 deletion src/line-stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file m3u8/line-stream.js
*/
import Stream from './stream';
import Stream from '@videojs/vhs-utils/dist/stream.js';

/**
* A stream that buffers string input and generates a `data` event for each
Expand Down
2 changes: 1 addition & 1 deletion src/parse-stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file m3u8/parse-stream.js
*/
import Stream from './stream';
import Stream from '@videojs/vhs-utils/dist/stream.js';

/**
* "forgiving" attribute list psuedo-grammar:
Expand Down
4 changes: 2 additions & 2 deletions src/parser.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @file m3u8/parser.js
*/
import Stream from './stream';
import Stream from '@videojs/vhs-utils/dist/stream.js';
import decodeB64ToUint8Array from '@videojs/vhs-utils/dist/decode-b64-to-uint8-array.js';
import LineStream from './line-stream';
import ParseStream from './parse-stream';
import decodeB64ToUint8Array from './utils/decode';

/**
* A parser for M3U8 files. The current interpretation of the input is
Expand Down
99 changes: 0 additions & 99 deletions src/stream.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/utils/decode.js

This file was deleted.

0 comments on commit 7985794

Please sign in to comment.