Node's Package Magician

    This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    gulp-sourcemaps-support

    0.0.1 • Public • Published

    gulp-sourcemaps-support

    A companion for gulp-sourcemaps that automatically enables source-map-support for NodeJS.

    Installation

    Install it as a dev dependency on your project, along with gulp-sourcemaps

    npm install --save-dev gulp-sourcemaps gulp-sourcemaps-support

    Usage

    Require it on your gulpfile.js

    var SourceMap        = require('gulp-sourcemaps');
    var SourceMapSupport = require('gulp-sourcemaps-support');

    Use it on your tasks, but remember to always call it before gulp-sourcemaps.

    Gulp.task('build', ['clean', 'lint', 'test'], function(){
        return Gulp.src(Route.src)
            .pipe(SourceMapSupport())
            .pipe(SourceMap.init())
            .pipe(Babel(Config.babel))  // your extra plugins here
            .pipe(SourceMap.write('.'))
            .pipe(Gulp.dest(Dir.build));
    });

    Install

    npm i gulp-sourcemaps-support

    DownloadsWeekly Downloads

    37

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • etor