Skip to content

Commit

Permalink
chore: update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulovieira committed May 14, 2021
1 parent 30b30c1 commit 3ad0894
Show file tree
Hide file tree
Showing 3 changed files with 1,226 additions and 1,196 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,30 @@
},
"homepage": "https://github.com/clappr/hlsjs-playback",
"peerDependencies": {
"@clappr/core": "^0.4.17",
"@clappr/core": "^0.4.18",
"hls.js": "^0.14.17"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@clappr/core": "^0.4.17",
"@rollup/plugin-babel": "^5.2.3",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-replace": "^2.3.4",
"@babel/core": "^7.14.2",
"@babel/preset-env": "^7.14.2",
"@clappr/core": "^0.4.18",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-replace": "^2.4.2",
"babel-jest": "^26.6.3",
"coveralls": "^3.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.18.0",
"eslint": "^7.26.0",
"hls.js": "^0.14.17",
"jest": "^26.6.3",
"rollup": "^2.38.1",
"rollup-plugin-filesize": "^9.1.0",
"rollup": "^2.47.0",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-sizes": "^1.0.3",
"rollup-plugin-sizes": "^1.0.4",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^4.2.0"
"rollup-plugin-visualizer": "^5.5.0"
},
"config": {
"commitizen": {
Expand Down
7 changes: 3 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@ const minimize = !!process.env.MINIMIZE
const babelOptionsPlugins = { exclude: 'node_modules/**', babelHelpers: 'bundled' }
const servePluginOptions = { contentBase: ['dist', 'public'], host: '0.0.0.0', port: '8080' }
const livereloadPluginOptions = { watch: ['dist', 'public'] }
const baseReplacePluginOptions = { CLAPPR_CORE_VERSION: JSON.stringify(clapprCoreVersion) }
const replacePluginOptions = { ...baseReplacePluginOptions, 'process.env.NODE_ENV': JSON.stringify('development') }
const replacePluginOptions = { CLAPPR_CORE_VERSION: JSON.stringify(clapprCoreVersion), preventAssignment: false }

let plugins = [
replace(baseReplacePluginOptions),
replace(replacePluginOptions),
resolve(),
commonjs(),
babel(babelOptionsPlugins),
size(),
filesize(),
]

serveLocal && (plugins = [...plugins, replace(replacePluginOptions), serve(servePluginOptions)])
serveLocal && (plugins = [...plugins, replace({ ...replacePluginOptions, 'process.env.NODE_ENV': JSON.stringify('development') }), serve(servePluginOptions)])
reloadEnabled && (plugins = [...plugins, livereload(livereloadPluginOptions)])
analyzeBundle && plugins.push(visualize({ open: true }))

Expand Down
Loading

0 comments on commit 3ad0894

Please sign in to comment.