mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
dependencies updated
This commit is contained in:
parent
b4c2f80559
commit
47f36e8fb3
6 changed files with 3293 additions and 3244 deletions
4
.babelrc
4
.babelrc
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"presets": ["env", "react"],
|
|
||||||
"plugins": ["transform-class-properties", "transform-object-rest-spread"]
|
|
||||||
}
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -7,4 +7,5 @@ dist
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
.cache
|
||||||
|
|
@ -13,7 +13,11 @@ module.exports = {
|
||||||
path.resolve(__dirname, '../node_modules/stremio-icons/dom')
|
path.resolve(__dirname, '../node_modules/stremio-icons/dom')
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
loader: 'babel-loader'
|
loader: 'babel-loader',
|
||||||
|
options: {
|
||||||
|
presets: ['@babel/preset-env', '@babel/preset-react'],
|
||||||
|
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -27,7 +31,7 @@ module.exports = {
|
||||||
loader: 'css-loader',
|
loader: 'css-loader',
|
||||||
options: {
|
options: {
|
||||||
modules: true,
|
modules: true,
|
||||||
localIdentName: '[path][name]_[local]_[hash:base64:5]',
|
localIdentName: '[local]_[hash:base64:5]',
|
||||||
importLoaders: 2
|
importLoaders: 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
47
package.json
47
package.json
|
|
@ -13,9 +13,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"classnames": "2.2.6",
|
"classnames": "2.2.6",
|
||||||
"prop-types": "15.6.1",
|
"prop-types": "15.6.2",
|
||||||
"react": "^16.4.1",
|
"react": "16.6.0",
|
||||||
"react-dom": "^16.4.1",
|
"react-dom": "16.6.0",
|
||||||
"react-router": "4.3.1",
|
"react-router": "4.3.1",
|
||||||
"react-router-dom": "4.3.1",
|
"react-router-dom": "4.3.1",
|
||||||
"stremio-addon-client": "git+ssh://git@github.com/Stremio/stremio-addon-client.git#v1.5.1",
|
"stremio-addon-client": "git+ssh://git@github.com/Stremio/stremio-addon-client.git#v1.5.1",
|
||||||
|
|
@ -30,27 +30,28 @@
|
||||||
"stremio-translations": "git+ssh://git@github.com/Stremio/stremio-translations.git#v1.41.0"
|
"stremio-translations": "git+ssh://git@github.com/Stremio/stremio-translations.git#v1.41.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@storybook/react": "^3.4.11",
|
"@babel/core": "7.1.2",
|
||||||
"babel-core": "^6.26.3",
|
"@babel/plugin-proposal-class-properties": "7.1.0",
|
||||||
"babel-loader": "7.1.4",
|
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
|
||||||
"babel-plugin-transform-class-properties": "6.24.1",
|
"@babel/preset-env": "7.1.0",
|
||||||
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
"@babel/preset-react": "7.0.0",
|
||||||
"babel-preset-env": "1.7.0",
|
"@babel/runtime": "7.1.2",
|
||||||
"babel-preset-react": "6.24.1",
|
"@storybook/addon-actions": "4.0.4",
|
||||||
"copy-webpack-plugin": "4.5.2",
|
"@storybook/addon-links": "4.0.4",
|
||||||
"css-loader": "0.28.11",
|
"@storybook/addons": "4.0.4",
|
||||||
|
"@storybook/react": "4.0.4",
|
||||||
|
"babel-loader": "8.0.4",
|
||||||
|
"copy-webpack-plugin": "4.6.0",
|
||||||
|
"css-loader": "1.0.1",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"html-webpack-plugin": "3.2.0",
|
||||||
"less": "3.0.4",
|
"less": "3.8.1",
|
||||||
"less-loader": "4.1.0",
|
"less-loader": "4.1.0",
|
||||||
"postcss-loader": "2.1.5",
|
"postcss-loader": "3.0.0",
|
||||||
"style-loader": "0.21.0",
|
"style-loader": "0.23.1",
|
||||||
"uglifyjs-webpack-plugin": "1.2.7",
|
"terser-webpack-plugin": "1.1.0",
|
||||||
"webpack": "^4.20.2",
|
"uglifyjs-webpack-plugin": "2.0.1",
|
||||||
"webpack-cli": "3.0.8",
|
"webpack": "4.25.1",
|
||||||
"webpack-dev-server": "3.1.4",
|
"webpack-cli": "3.1.2",
|
||||||
"@storybook/addon-actions": "^3.4.11",
|
"webpack-dev-server": "3.1.10"
|
||||||
"@storybook/addon-links": "^3.4.11",
|
|
||||||
"@storybook/addons": "^3.4.11",
|
|
||||||
"babel-runtime": "^6.26.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
||||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
|
|
@ -19,7 +19,11 @@ module.exports = {
|
||||||
path.resolve(__dirname, 'node_modules/stremio-icons/dom')
|
path.resolve(__dirname, 'node_modules/stremio-icons/dom')
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
loader: 'babel-loader'
|
loader: 'babel-loader',
|
||||||
|
options: {
|
||||||
|
presets: ['@babel/preset-env', '@babel/preset-react'],
|
||||||
|
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -33,7 +37,7 @@ module.exports = {
|
||||||
loader: 'css-loader',
|
loader: 'css-loader',
|
||||||
options: {
|
options: {
|
||||||
modules: true,
|
modules: true,
|
||||||
localIdentName: '[hash:base64:5]',
|
localIdentName: '[local]_[hash:base64:5]',
|
||||||
importLoaders: 2
|
importLoaders: 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -73,25 +77,30 @@ module.exports = {
|
||||||
devServer: {
|
devServer: {
|
||||||
host: '0.0.0.0'
|
host: '0.0.0.0'
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
minimizer: [
|
||||||
|
new TerserPlugin({
|
||||||
|
test: /\.js$/,
|
||||||
|
terserOptions: {
|
||||||
|
ecma: 5,
|
||||||
|
mangle: true,
|
||||||
|
warnings: true,
|
||||||
|
output: {
|
||||||
|
comments: false,
|
||||||
|
beautify: false,
|
||||||
|
wrap_iife: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebPackPlugin({
|
new HtmlWebPackPlugin({
|
||||||
template: './src/index.html'
|
template: './src/index.html'
|
||||||
}),
|
}),
|
||||||
new UglifyJsPlugin({
|
|
||||||
test: /\.js$/,
|
|
||||||
uglifyOptions: {
|
|
||||||
mangle: true,
|
|
||||||
output: {
|
|
||||||
ecma: 5,
|
|
||||||
comments: false,
|
|
||||||
beautify: false,
|
|
||||||
wrap_iife: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{ from: 'images', to: 'images' },
|
{ from: 'images', to: 'images' },
|
||||||
{ from: 'fonts', to: 'fonts' }
|
{ from: 'fonts', to: 'fonts' }
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue