Commit 9a260035 authored by echel0n's avatar echel0n

Added Sentry remote error logging for javascript.

parent fde6ebc0
......@@ -109,12 +109,12 @@ release:build:master:
- npm install -qs
- pip install bumpversion
- pip install -r requirements-dev.txt
- bumpversion --allow-dirty patch package.json sickrage/version.txt
- npm run build
# - python setup.py extract_messages
# - crowdin-cli-py upload sources
# - crowdin-cli-py download
# - python setup.py compile_catalog
- bumpversion --allow-dirty patch sickrage/version.txt
- git config --global user.email $(git --no-pager show -s --format='%ae' HEAD)
- git config --global user.name $(git --no-pager show -s --format='%an' HEAD)
- git add --all
......@@ -141,12 +141,12 @@ release:build:develop:
- npm install -qs
- pip install bumpversion
- pip install -r requirements-dev.txt
- bumpversion --allow-dirty preversion package.json sickrage/version.txt
- npm run build
# - python setup.py extract_messages
# - crowdin-cli-py upload sources
# - crowdin-cli-py download
# - python setup.py compile_catalog
- bumpversion --allow-dirty preversion sickrage/version.txt
# - python setup.py extract_messages
# - crowdin-cli-py upload sources
# - crowdin-cli-py download
# - python setup.py compile_catalog
- git config --global user.email $(git --no-pager show -s --format='%ae' HEAD)
- git config --global user.name $(git --no-pager show -s --format='%an' HEAD)
- git add --all
......
{
"name": "sickrage",
"version": "9.4.184.dev6",
"private": true,
"repository": {
"type": "git",
......@@ -14,6 +15,8 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.1.0",
"@sentry/browser": "^5.9.0",
"@sentry/webpack-plugin": "^1.9.3",
"animate.css": "^3.6.1",
"autoprefixer": "^8.6.5",
"babel": "^6.23.0",
......
......@@ -23,6 +23,12 @@ import Isotope from 'isotope-layout';
import ImagesLoaded from 'imagesloaded';
import Tokenfield from 'tokenfield';
import _ from 'underscore';
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: 'https://[email protected]e.ca/2',
release: process.env.PACKAGE_VERSION
});
jQueryBridget('isotope', Isotope, $);
jQueryBridget('imagesLoaded', ImagesLoaded, $);
......
const path = require('path');
const fs = require('fs');
const packageJson = fs.readFileSync('./package.json');
const version = JSON.parse(packageJson).version;
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const SpritesmithPlugin = require('webpack-spritesmith');
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
const templateFunction = function (data) {
var iconName = path.basename(data.sprites[0].image, path.extname(data.sprites[0].image))
......@@ -120,6 +124,11 @@ module.exports = {
modules: ["node_modules", "spritesmith-generated"]
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
PACKAGE_VERSION: '"' + version + '"'
}
}),
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
......@@ -133,6 +142,13 @@ module.exports = {
filename: "../css/core.min.css",
chunkFilename: "[id].css"
}),
new SentryWebpackPlugin({
release: version,
include: '.',
ignoreFile: '.sentrycliignore',
ignore: ['node_modules', 'webpack.config.js', 'core.min.js', 'app.js'],
configFile: 'sentry.properties'
}),
new OptimizeCSSAssetsPlugin(),
makeSprite('core'),
makeSprite('network'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment