mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-16 09:01:57 +00:00
bump build dependencies version and fix the pipeline
This commit is contained in:
parent
0510110a87
commit
167f608d86
3 changed files with 3475 additions and 2560 deletions
5880
package-lock.json
generated
5880
package-lock.json
generated
File diff suppressed because it is too large
Load diff
41
package.json
41
package.json
|
|
@ -13,7 +13,7 @@
|
||||||
"lint": "eslint src"
|
"lint": "eslint src"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "7.8.7",
|
"@babel/runtime": "7.12.5",
|
||||||
"@sentry/browser": "5.11.1",
|
"@sentry/browser": "5.11.1",
|
||||||
"@stremio/stremio-colors": "4.0.1",
|
"@stremio/stremio-colors": "4.0.1",
|
||||||
"@stremio/stremio-core-web": "0.21.0",
|
"@stremio/stremio-core-web": "0.21.0",
|
||||||
|
|
@ -33,36 +33,37 @@
|
||||||
"spatial-navigation-polyfill": "git+https://git@github.com/Stremio/spatial-navigation.git#40204ad9942fe786794c62f99ea5ab2b52b24096"
|
"spatial-navigation-polyfill": "git+https://git@github.com/Stremio/spatial-navigation.git#40204ad9942fe786794c62f99ea5ab2b52b24096"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.8.7",
|
"@babel/core": "7.12.10",
|
||||||
"@babel/plugin-proposal-class-properties": "7.8.3",
|
"@babel/plugin-proposal-class-properties": "7.12.1",
|
||||||
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
|
"@babel/plugin-proposal-object-rest-spread": "7.12.1",
|
||||||
"@babel/preset-env": "7.8.7",
|
"@babel/preset-env": "7.12.10",
|
||||||
"@babel/preset-react": "7.8.3",
|
"@babel/preset-react": "7.12.10",
|
||||||
"@storybook/addon-actions": "5.2.8",
|
"@storybook/addon-actions": "5.2.8",
|
||||||
"@storybook/addon-console": "1.2.1",
|
"@storybook/addon-console": "1.2.1",
|
||||||
"@storybook/addons": "5.2.8",
|
"@storybook/addons": "5.2.8",
|
||||||
"@storybook/react": "5.2.8",
|
"@storybook/react": "5.2.8",
|
||||||
"@testing-library/react": "9.4.0",
|
"@testing-library/react": "9.4.0",
|
||||||
"@testing-library/react-hooks": "3.2.1",
|
"@testing-library/react-hooks": "3.2.1",
|
||||||
"babel-loader": "8.0.6",
|
"babel-loader": "8.2.2",
|
||||||
"clean-webpack-plugin": "3.0.0",
|
"clean-webpack-plugin": "3.0.0",
|
||||||
"copy-webpack-plugin": "5.1.1",
|
"copy-webpack-plugin": "7.0.0",
|
||||||
"css-loader": "3.4.2",
|
"css-loader": "5.0.1",
|
||||||
"cssnano": "4.1.10",
|
"cssnano": "4.1.10",
|
||||||
"cssnano-preset-advanced": "4.0.7",
|
"cssnano-preset-advanced": "4.0.7",
|
||||||
"eslint": "6.8.0",
|
"eslint": "7.15.0",
|
||||||
"eslint-plugin-react": "7.19.0",
|
"eslint-plugin-react": "7.21.5",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"file-loader": "6.2.0",
|
||||||
|
"html-webpack-plugin": "4.5.0",
|
||||||
"jest": "24.9.0",
|
"jest": "24.9.0",
|
||||||
"less": "3.11.1",
|
"less": "3.13.0",
|
||||||
"less-loader": "5.0.0",
|
"less-loader": "7.1.0",
|
||||||
"mini-css-extract-plugin": "0.9.0",
|
"mini-css-extract-plugin": "1.3.3",
|
||||||
"postcss-loader": "3.0.0",
|
"postcss-loader": "4.1.0",
|
||||||
"react-test-renderer": "16.13.0",
|
"react-test-renderer": "16.13.0",
|
||||||
"storybook-addon-jsx": "7.1.15",
|
"storybook-addon-jsx": "7.1.15",
|
||||||
"terser-webpack-plugin": "2.3.5",
|
"terser-webpack-plugin": "5.0.3",
|
||||||
"webpack": "4.42.0",
|
"webpack": "5.10.3",
|
||||||
"webpack-cli": "3.3.11",
|
"webpack-cli": "4.2.0",
|
||||||
"webpack-dev-server": "3.10.3"
|
"webpack-dev-server": "3.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,14 +41,19 @@ module.exports = (env, argv) => ({
|
||||||
{
|
{
|
||||||
loader: MiniCssExtractPlugin.loader,
|
loader: MiniCssExtractPlugin.loader,
|
||||||
options: {
|
options: {
|
||||||
reloadAll: true
|
esModule: false,
|
||||||
|
modules: {
|
||||||
|
namedExport: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
loader: 'css-loader',
|
loader: 'css-loader',
|
||||||
options: {
|
options: {
|
||||||
|
esModule: false,
|
||||||
importLoaders: 2,
|
importLoaders: 2,
|
||||||
modules: {
|
modules: {
|
||||||
|
namedExport: false,
|
||||||
localIdentName: '[local]-[hash:base64:5]'
|
localIdentName: '[local]-[hash:base64:5]'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -56,49 +61,71 @@ module.exports = (env, argv) => ({
|
||||||
{
|
{
|
||||||
loader: 'postcss-loader',
|
loader: 'postcss-loader',
|
||||||
options: {
|
options: {
|
||||||
ident: 'postcss-id',
|
postcssOptions: {
|
||||||
plugins: () => [
|
plugins: [
|
||||||
require('cssnano')({
|
require('cssnano')({
|
||||||
preset: [
|
preset: [
|
||||||
'advanced',
|
'advanced',
|
||||||
{
|
{
|
||||||
autoprefixer: {
|
autoprefixer: {
|
||||||
add: true,
|
add: true,
|
||||||
remove: true,
|
remove: true,
|
||||||
flexbox: false,
|
flexbox: false,
|
||||||
grid: false
|
grid: false
|
||||||
},
|
},
|
||||||
cssDeclarationSorter: true,
|
cssDeclarationSorter: true,
|
||||||
calc: false,
|
calc: false,
|
||||||
colormin: false,
|
colormin: false,
|
||||||
convertValues: false,
|
convertValues: false,
|
||||||
discardComments: {
|
discardComments: {
|
||||||
removeAll: true,
|
removeAll: true,
|
||||||
},
|
},
|
||||||
discardOverridden: false,
|
discardOverridden: false,
|
||||||
mergeIdents: false,
|
mergeIdents: false,
|
||||||
normalizeDisplayValues: false,
|
normalizeDisplayValues: false,
|
||||||
normalizePositions: false,
|
normalizePositions: false,
|
||||||
normalizeRepeatStyle: false,
|
normalizeRepeatStyle: false,
|
||||||
normalizeUnicode: false,
|
normalizeUnicode: false,
|
||||||
normalizeUrl: false,
|
normalizeUrl: false,
|
||||||
reduceIdents: false,
|
reduceIdents: false,
|
||||||
reduceInitial: false,
|
reduceInitial: false,
|
||||||
zindex: false
|
zindex: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
loader: 'less-loader',
|
loader: 'less-loader',
|
||||||
options: {
|
options: {
|
||||||
strictMath: true,
|
lessOptions: {
|
||||||
noIeCompat: true
|
strictMath: true,
|
||||||
|
ieCompat: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.ttf$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
outputPath: 'fonts',
|
||||||
|
publicPath: 'fonts',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.(png|jpe?g)$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
esModule: false,
|
||||||
|
outputPath: 'images',
|
||||||
|
publicPath: 'images',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -116,6 +143,7 @@ module.exports = (env, argv) => ({
|
||||||
https: true
|
https: true
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
|
minimize: true,
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
|
|
@ -138,14 +166,18 @@ module.exports = (env, argv) => ({
|
||||||
DEBUG: argv.mode !== 'production',
|
DEBUG: argv.mode !== 'production',
|
||||||
VERSION: pachageJson.version,
|
VERSION: pachageJson.version,
|
||||||
COMMIT_HASH: child_process.execSync('git rev-parse HEAD').toString(),
|
COMMIT_HASH: child_process.execSync('git rev-parse HEAD').toString(),
|
||||||
|
SENTRY_DSN: null,
|
||||||
...env
|
...env
|
||||||
}),
|
}),
|
||||||
new webpack.ProgressPlugin(),
|
new webpack.ProgressPlugin(),
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin({
|
||||||
{ from: 'node_modules/@stremio/stremio-core-web/stremio_core_web_bg.wasm', to: '' },
|
patterns: [
|
||||||
{ from: 'images', to: 'images' },
|
{
|
||||||
{ from: 'fonts', to: 'fonts' }
|
from: 'node_modules/@stremio/stremio-core-web/stremio_core_web_bg.wasm',
|
||||||
]),
|
to: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}),
|
||||||
new HtmlWebPackPlugin({
|
new HtmlWebPackPlugin({
|
||||||
template: './src/index.html',
|
template: './src/index.html',
|
||||||
inject: false
|
inject: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue