mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +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"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.8.7",
|
||||
"@babel/runtime": "7.12.5",
|
||||
"@sentry/browser": "5.11.1",
|
||||
"@stremio/stremio-colors": "4.0.1",
|
||||
"@stremio/stremio-core-web": "0.21.0",
|
||||
|
|
@ -33,36 +33,37 @@
|
|||
"spatial-navigation-polyfill": "git+https://git@github.com/Stremio/spatial-navigation.git#40204ad9942fe786794c62f99ea5ab2b52b24096"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.8.7",
|
||||
"@babel/plugin-proposal-class-properties": "7.8.3",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
|
||||
"@babel/preset-env": "7.8.7",
|
||||
"@babel/preset-react": "7.8.3",
|
||||
"@babel/core": "7.12.10",
|
||||
"@babel/plugin-proposal-class-properties": "7.12.1",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.12.1",
|
||||
"@babel/preset-env": "7.12.10",
|
||||
"@babel/preset-react": "7.12.10",
|
||||
"@storybook/addon-actions": "5.2.8",
|
||||
"@storybook/addon-console": "1.2.1",
|
||||
"@storybook/addons": "5.2.8",
|
||||
"@storybook/react": "5.2.8",
|
||||
"@testing-library/react": "9.4.0",
|
||||
"@testing-library/react-hooks": "3.2.1",
|
||||
"babel-loader": "8.0.6",
|
||||
"babel-loader": "8.2.2",
|
||||
"clean-webpack-plugin": "3.0.0",
|
||||
"copy-webpack-plugin": "5.1.1",
|
||||
"css-loader": "3.4.2",
|
||||
"copy-webpack-plugin": "7.0.0",
|
||||
"css-loader": "5.0.1",
|
||||
"cssnano": "4.1.10",
|
||||
"cssnano-preset-advanced": "4.0.7",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-plugin-react": "7.19.0",
|
||||
"html-webpack-plugin": "3.2.0",
|
||||
"eslint": "7.15.0",
|
||||
"eslint-plugin-react": "7.21.5",
|
||||
"file-loader": "6.2.0",
|
||||
"html-webpack-plugin": "4.5.0",
|
||||
"jest": "24.9.0",
|
||||
"less": "3.11.1",
|
||||
"less-loader": "5.0.0",
|
||||
"mini-css-extract-plugin": "0.9.0",
|
||||
"postcss-loader": "3.0.0",
|
||||
"less": "3.13.0",
|
||||
"less-loader": "7.1.0",
|
||||
"mini-css-extract-plugin": "1.3.3",
|
||||
"postcss-loader": "4.1.0",
|
||||
"react-test-renderer": "16.13.0",
|
||||
"storybook-addon-jsx": "7.1.15",
|
||||
"terser-webpack-plugin": "2.3.5",
|
||||
"webpack": "4.42.0",
|
||||
"webpack-cli": "3.3.11",
|
||||
"webpack-dev-server": "3.10.3"
|
||||
"terser-webpack-plugin": "5.0.3",
|
||||
"webpack": "5.10.3",
|
||||
"webpack-cli": "4.2.0",
|
||||
"webpack-dev-server": "3.11.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,14 +41,19 @@ module.exports = (env, argv) => ({
|
|||
{
|
||||
loader: MiniCssExtractPlugin.loader,
|
||||
options: {
|
||||
reloadAll: true
|
||||
esModule: false,
|
||||
modules: {
|
||||
namedExport: false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
esModule: false,
|
||||
importLoaders: 2,
|
||||
modules: {
|
||||
namedExport: false,
|
||||
localIdentName: '[local]-[hash:base64:5]'
|
||||
}
|
||||
}
|
||||
|
|
@ -56,49 +61,71 @@ module.exports = (env, argv) => ({
|
|||
{
|
||||
loader: 'postcss-loader',
|
||||
options: {
|
||||
ident: 'postcss-id',
|
||||
plugins: () => [
|
||||
require('cssnano')({
|
||||
preset: [
|
||||
'advanced',
|
||||
{
|
||||
autoprefixer: {
|
||||
add: true,
|
||||
remove: true,
|
||||
flexbox: false,
|
||||
grid: false
|
||||
},
|
||||
cssDeclarationSorter: true,
|
||||
calc: false,
|
||||
colormin: false,
|
||||
convertValues: false,
|
||||
discardComments: {
|
||||
removeAll: true,
|
||||
},
|
||||
discardOverridden: false,
|
||||
mergeIdents: false,
|
||||
normalizeDisplayValues: false,
|
||||
normalizePositions: false,
|
||||
normalizeRepeatStyle: false,
|
||||
normalizeUnicode: false,
|
||||
normalizeUrl: false,
|
||||
reduceIdents: false,
|
||||
reduceInitial: false,
|
||||
zindex: false
|
||||
}
|
||||
]
|
||||
})
|
||||
]
|
||||
postcssOptions: {
|
||||
plugins: [
|
||||
require('cssnano')({
|
||||
preset: [
|
||||
'advanced',
|
||||
{
|
||||
autoprefixer: {
|
||||
add: true,
|
||||
remove: true,
|
||||
flexbox: false,
|
||||
grid: false
|
||||
},
|
||||
cssDeclarationSorter: true,
|
||||
calc: false,
|
||||
colormin: false,
|
||||
convertValues: false,
|
||||
discardComments: {
|
||||
removeAll: true,
|
||||
},
|
||||
discardOverridden: false,
|
||||
mergeIdents: false,
|
||||
normalizeDisplayValues: false,
|
||||
normalizePositions: false,
|
||||
normalizeRepeatStyle: false,
|
||||
normalizeUnicode: false,
|
||||
normalizeUrl: false,
|
||||
reduceIdents: false,
|
||||
reduceInitial: false,
|
||||
zindex: false
|
||||
}
|
||||
]
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: 'less-loader',
|
||||
options: {
|
||||
strictMath: true,
|
||||
noIeCompat: true
|
||||
lessOptions: {
|
||||
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
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
test: /\.js$/,
|
||||
|
|
@ -138,14 +166,18 @@ module.exports = (env, argv) => ({
|
|||
DEBUG: argv.mode !== 'production',
|
||||
VERSION: pachageJson.version,
|
||||
COMMIT_HASH: child_process.execSync('git rev-parse HEAD').toString(),
|
||||
SENTRY_DSN: null,
|
||||
...env
|
||||
}),
|
||||
new webpack.ProgressPlugin(),
|
||||
new CopyWebpackPlugin([
|
||||
{ from: 'node_modules/@stremio/stremio-core-web/stremio_core_web_bg.wasm', to: '' },
|
||||
{ from: 'images', to: 'images' },
|
||||
{ from: 'fonts', to: 'fonts' }
|
||||
]),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: 'node_modules/@stremio/stremio-core-web/stremio_core_web_bg.wasm',
|
||||
to: ''
|
||||
}
|
||||
]
|
||||
}),
|
||||
new HtmlWebPackPlugin({
|
||||
template: './src/index.html',
|
||||
inject: false
|
||||
|
|
|
|||
Loading…
Reference in a new issue