0.2.1 • Published 10 years ago

gulp-neuter v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Build Status

gulp-neuter Build Status Dependencies Code Climate

Unifies javascript source files in the order you require

Usage

First, install gulp-neuter as a development dependency:

npm install --save-dev gulp-neuter

Then, add it to your gulpfile.js:

var gulp = require('gulp');
var neuter = require('gulp-neuter');

var inputDir = 'src';
var outputDir = 'build';

gulp.task('build-js', function() {
	return gulp.src(inputDir + '/**.js')
		.pipe(neuter('main.js', 'main.map', {
			basePath: inputDir,
		}))
		.pipe(gulp.dest(outputDir));
});

API

neuter([outputFileName, mapFileName, options])

  • outputFileName (string); the name of the output file to use in the source map.
  • mapFileName (string); the name of the source map output file used to link the map file to the neutered js file.
  • options (object); for the full list of options, have a look at the node-neuter documentation. Gulp-neuter is a minimalistic wrapper on top of node-neuter and supports all options as listed. In addition a sourceRoot parameter is available which will be as the base path when referincing to the original source in the generated source map.
0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago