@madisonreed/gulp-raygun-sourcemaps
Uploads sourcemaps from gulp into Raygun
Last updated 4 years ago by isurfbecause .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @madisonreed/gulp-raygun-sourcemaps 
SYNC missed versions from official npm registry.

gulp-raygun-sourcemaps

Uploads source maps and source files from gulp to Raygun.

To install

npm install gulp-raygun-sourcemaps --save-dev

Using

.pipe(raygunUpload.upload({
   app: '' // Your app id,
   key: '' // Your external access token (https://app.raygun.io/user),
   root: __dirname // This probably doesn't need changing,
   minified: 'dist' // The directory that has your minified JS and .map files in it,
   src: 'src/' // Where your unminified source lives,
   url: 'http://localhost:8000/' // The URL of your site
}))

Complete gulpfile.js sample

var gulp = require('gulp');

var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var raygunUpload = require('gulp-raygun-sourcemaps');

gulp.task('default', function() {
	gulp.src('src/*.js')
		.pipe(sourcemaps.init())
		.pipe(uglify())
		.pipe(sourcemaps.write('.', {
			sourceRoot: '/src/'
		}))
		.pipe(gulp.dest('dist'))
		.pipe(raygunUpload.upload({
			app: '123456',
			key: '12345678912345678923456789',
			root: __dirname,
			minified: 'dist',
			src: 'src/',
			url: 'http://localhost:8000/'
		}));
});

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

1 Versions

  • 1.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |