How to use the exorcist function in exorcist

To help you get started, we’ve selected a few exorcist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cncjs / cncjs / gulp / tasks / browserify.js View on Github external
let rebundle = () => {
        gutil.log('Rebundling "%s"...', gutil.colors.cyan(bundleFile));
        return bundler.bundle()
            .pipe(exorcist(bundleMapFile))
            .pipe(source(bundleFile)) // streaming vinyl file object
            .pipe(buffer()) // convert from streaming to buffered vinyl file object
            .pipe(uglify(uglifyConfig.options))
            .pipe(gulp.dest(appConfig.dest))
            .pipe(gulpif(options.watch, livereload()))
            .pipe(notify(() => {
                gutil.log('Finished "%s" bundle.', gutil.colors.cyan(bundleFile));
            }));
    };
github dysfunc / eleven / gulpfile.babel.js View on Github external
function bundle(){
  return bundler
    .bundle()
    .on('error', function (err) {
      console.error(`=====\n${err.toString()}\n====`);
      this.emit('end');
    })
    .pipe(exorcist('app/js/eleven.js.map'))
    .pipe(source('eleven.js'))
    .pipe(buffer())
    .pipe(ifElse(process.env.NODE_ENV === 'production', uglify))
    .pipe(gulp.dest('app/js'));
}
github peteroome / giphy-menubar / tasks / bundleNEW.js View on Github external
function bundle(src, dest) {
  const jsFile = path.basename(dest);
  const destPath = path.dirname(dest);
  const mapFile = `${dest}.map`;

  bundler.add(src, bundle);
  bundler.bundle()
    .on('error', (error) => {
      console.error('\nError: ', error, '\n');
      bundler.emit('end');
    })
    .pipe(exorcist(mapFile))
    .pipe(source(jsFile))
    .pipe(buffer())
    .pipe(ifElse(process.env.NODE_ENV === 'production', uglify))
    .pipe(gulp.dest(destPath));
}
github jpgcode / gulp-starterkit / gulp / tasks / jsbundle.js View on Github external
gulp.task('jsbundle', ['eslint'], () => {
  return browserify({
      paths: [ path.join(__dirname, config.app) ],
      entries: config.js.entryFile,
      debug: true
  })
  .transform(babelify)
  .bundle().on('error', function(error){
        gutil.log(gutil.colors.red('[Build Error]', error.message));
        this.emit('end');
  })
  .pipe(exorcist(config.js.sourcemapFile))
  .pipe(source(config.js.outputFile))
  .pipe(buffer())
  .pipe(gulp.dest(config.js.appOutputPath));
});
github sergiocruz / react-connect4 / gulpfile.babel.js View on Github external
function bundle() {

  gutil.log('Compiling JS...');

  return bundler.bundle()
    .on('error', (err) => {
      gutil.log(err.message);
      browserSync.notify('Browserify Error!');
      this.emit('end');
    })
    .pipe(exorcist('public/js/bundle.js.map'))
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('public/js'))
    .pipe(browserSync.stream({once: true}));
}
github jsonmaur / jumpsuit / packages / cli / src / compilers / javascript.js View on Github external
fromString: true
        })
        fs.writeFileSync(file, newCode.code)
        return
      }

      socketMessage({
        type: 'refresh'
      })
    })

  if (process.env.NODE_ENV === 'production' && CONFIG.prodSourceMaps) {
    bundler.bundle((err) => {
      if (err) cb(err)
    })
      .pipe(exorcist(path.resolve(CONFIG.outputDir, sourceMapFile)))
      .pipe(stream)
      .on('finish', () => cb())
  } else {
    bundler.bundle((err) => {
      if (err) cb(err)
    })
      .pipe(stream)
      .on('finish', () => cb())
  }
}, { wait: 300 })
github cheapsteak / react-transition-group-plus / gulpfile.babel.js View on Github external
pipeline = pipeline.pipe(transform(() => {
      return exorcist(path.join(config.scripts.destination, config.scripts.filename) + '.map');
    }));
  }

exorcist

Externalizes the source map found inside a stream to an external `.js.map` file

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Popular exorcist functions