Add Sentry release conf (#114)

This commit is contained in:
Ildar Galeev 2022-06-30 17:53:21 +03:00 committed by GitHub
parent 971cd0e049
commit 483ced94b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 1478 deletions

View File

@ -28,3 +28,12 @@ jobs:
dockerfile-path: .
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
sourcemaps: './dist'

13
.vscode/settings.json vendored
View File

@ -10,15 +10,12 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true,
".cache-loader": true,
"dist": true,
".vscode": true,
"build_utils": true
"**/.DS_Store": true,
"**/.git": true,
"**/.hg": true,
"**/.svn": true,
"**/CVS": true
},
}

View File

@ -1,15 +1,14 @@
const webpack = require('webpack');
const merge = require('webpack-merge');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const CompressionPlugin = require('compression-webpack-plugin');
const checkoutConfig = require('./checkout-config');
const initializerConfig = require('./initializer-config');
const samsungPayConfig = require('./samsung-pay-config');
const prepareOutputConfig = require('./prepare-output-config');
const commonConfig = require('./common-config');
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
const commonProdConfig = {
devtool: 'source-map',
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.DefinePlugin({
@ -19,25 +18,7 @@ const commonProdConfig = {
}),
new BundleAnalyzerPlugin({
analyzerMode: 'disabled'
}),
new CompressionPlugin({
filename: '[path].gz[query]',
algorithm: 'gzip',
test: /\.js$|\.css$|\.html$|\.json$/,
threshold: 10240,
minRatio: 0.8
}),
...(process.env.SENTRY_AUTH_TOKEN
? [
new SentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'vality',
project: 'checkout',
include: './dist',
ignore: ['node_modules', 'webpack.config.js']
})
]
: [])
})
]
};

1447
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,6 @@
},
"devDependencies": {
"@redux-saga/testing-utils": "^1.1.3",
"@sentry/webpack-plugin": "~1.17.1",
"@types/card-validator": "~4.1.0",
"@types/credit-card-type": "~7.0.0",
"@types/currency-formatter": "~1.3.0",
@ -68,7 +67,6 @@
"babel-plugin-transform-es2015-modules-commonjs": "~6.26.2",
"babel-preset-env": "~1.7.0",
"cache-loader": "4.1.0",
"compression-webpack-plugin": "~4.0.0",
"concurrently": "7.0.0",
"copy-webpack-plugin": "~5.1.1",
"cross-origin-communicator": "github:valitydev/cross-origin-communicator#bd13edd80e2d55cffa45c6b7b9ee3744475c5d0d",