commit
76f2dc5edd
|
@ -0,0 +1,41 @@
|
|||
###
|
||||
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
|
||||
# Copyright (C) 2014 Jesús Espino Garcia <jespinog@gmail.com>
|
||||
# Copyright (C) 2014 David Barragán Merino <bameda@dbarragan.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# File: modules/common/raven-logger.coffee
|
||||
###
|
||||
|
||||
|
||||
taiga = @.taiga
|
||||
|
||||
module = angular.module("taigaCommon")
|
||||
|
||||
ExceptionHandlerFactory = ($log, @config) ->
|
||||
ravenConfig = @config.get("ravenConfig", null)
|
||||
if ravenConfig
|
||||
$log.debug "Using the RavenJS exception handler."
|
||||
Raven.config(ravenConfig).install()
|
||||
return (exception, cause) ->
|
||||
$log.error.apply($log, arguments)
|
||||
Raven.captureException(exception)
|
||||
|
||||
else
|
||||
$log.debug "Using the default logging exception handler."
|
||||
return (exception, cause) ->
|
||||
$log.error.apply($log, arguments)
|
||||
|
||||
module.factory("$exceptionHandler", ["$log", "$tgConfig", ExceptionHandlerFactory])
|
|
@ -72,7 +72,8 @@
|
|||
"favico.js": "0.3.4",
|
||||
"Sortable": "~0.1.8",
|
||||
"pikaday": "~1.2.0",
|
||||
"malihu-custom-scrollbar-plugin": "~3.0.4"
|
||||
"malihu-custom-scrollbar-plugin": "~3.0.4",
|
||||
"raven-js": "~1.1.16"
|
||||
},
|
||||
"resolutions": {
|
||||
"lodash": "~2.4.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
gulp = require("gulp")
|
||||
jade = require("gulp-jade")
|
||||
|
||||
gutil = require("gulp-util")
|
||||
coffee = require("gulp-coffee")
|
||||
concat = require("gulp-concat")
|
||||
uglify = require("gulp-uglify")
|
||||
|
@ -19,6 +19,7 @@ scsslint = require("gulp-scss-lint")
|
|||
newer = require("gulp-newer")
|
||||
cache = require("gulp-cached")
|
||||
jadeInheritance = require('gulp-jade-inheritance')
|
||||
sourcemaps = require('gulp-sourcemaps')
|
||||
|
||||
paths = {}
|
||||
paths.app = "app/"
|
||||
|
@ -85,6 +86,7 @@ paths.js = [
|
|||
paths.app + "vendor/jquery-textcomplete/jquery.textcomplete.js",
|
||||
paths.app + "vendor/markitup/markitup/jquery.markitup.js",
|
||||
paths.app + "vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js",
|
||||
paths.app + "vendor/raven-js/dist/raven.js",
|
||||
paths.app + "js/jquery.ui.git-custom.js",
|
||||
paths.app + "js/jquery-ui.drag-multiple-custom.js",
|
||||
paths.app + "js/sha1-custom.js",
|
||||
|
@ -200,8 +202,10 @@ gulp.task "jslibs-watch", ->
|
|||
gulp.task "jslibs-deploy", ->
|
||||
gulp.src(paths.js)
|
||||
.pipe(plumber())
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(concat("libs.js"))
|
||||
.pipe(uglify({mangle:false, preserveComments: false}))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest("dist/js/"))
|
||||
|
||||
gulp.task "app-watch", ["coffee", "conf", "locales"], ->
|
||||
|
@ -223,8 +227,10 @@ gulp.task "app-deploy", ["coffee", "conf", "locales"], ->
|
|||
]
|
||||
|
||||
gulp.src(_paths)
|
||||
.pipe(concat("app.js"))
|
||||
.pipe(uglify({mangle:false, preserveComments: false}))
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(concat("app.js"))
|
||||
.pipe(uglify({mangle:false, preserveComments: false}))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest(paths.dist + "js/"))
|
||||
|
||||
##############################################################################
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
"gulp-rename": "^1.2.0",
|
||||
"gulp-ruby-sass": "^0.4.3",
|
||||
"gulp-scss-lint": "0.1.1",
|
||||
"gulp-sourcemaps": "^1.2.4",
|
||||
"gulp-styledocco": "0.0.1",
|
||||
"gulp-template": "^0.1.1",
|
||||
"gulp-uglify": "~0.2.0",
|
||||
|
|
Loading…
Reference in New Issue