-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update to videojs-generate-rollup-config ~5.0.0, use env options, and @babel/runtime
#289
Changes from all commits
54dfed0
aa290bf
802452c
70b6996
bb48b6c
f4b72f4
6b202b7
e95f344
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ const getGeneratorVersions = (pkgList) => pkgList.reduce((acc, pkgName) => { | |
const DEFAULTS = { | ||
dependencies: getGeneratorVersions(['global', 'video.js']), | ||
devDependencies: getGeneratorVersions([ | ||
'@babel/runtime', | ||
'@videojs/generator-helpers', | ||
'karma', | ||
'rollup', | ||
|
@@ -124,19 +125,16 @@ const packageJSON = (current, context) => { | |
'ie 11' | ||
], | ||
'scripts': _.assign({}, current.scripts, { | ||
'prebuild': 'npm run clean', | ||
'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': 'npm-run-all -s clean -p build:*', | ||
'build:js': 'rollup -c scripts/rollup.config.js', | ||
'clean': 'shx rm -rf ./dist ./test/dist', | ||
'postclean': 'shx mkdir -p ./dist ./test/dist', | ||
'clean': 'shx rm -rf ./dist ./test/dist && shx mkdir -p ./dist ./test/dist', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May as well do it in one command There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although, I don't think |
||
'lint': 'vjsstandard', | ||
'prepublishOnly': 'npm-run-all build test:verify', | ||
'prepublishOnly': 'npm-run-all build-prod && vjsverify --verbose', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
'start': 'npm-run-all -p server watch', | ||
'server': 'karma start scripts/karma.conf.js --singleRun=false --auto-watch', | ||
'pretest': 'npm-run-all lint build', | ||
'test': 'npm-run-all test:*', | ||
'test:verify': 'vjsverify --verbose', | ||
'test:unit': 'karma start scripts/karma.conf.js', | ||
'test': 'npm-run-all lint build-test && karma start scripts/karma.conf.js', | ||
'posttest': 'shx cat test/dist/coverage/text.txt', | ||
'preversion': 'npm test', | ||
'version': 'is-prerelease || npm run update-changelog && git add CHANGELOG.md', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we used to do this prebuild, but since we have multiple different types of "build" now, it doesn't make sense.