Skip to content

lukevers/gulp-gopherjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-gopherjs

A GopherJS plugin for Gulp.

NPM Version

Installation

npm install --save gulp-gopherjs

Usage

var gopher = require('gulp-gopherjs');

gulp.task('gopher', function() {
	return gulp.src('main.go')
		.pipe(gopher({/* options */}));
});

See test/gulpfile.js for more examples.

NOTE: in gulp.src you need to set your main go file to be compiled. All go files in that directory will be compiled.

Options

{
	// Set a destination folder for the compiled files.
	dest: './js',

	// Set to true if you want to minify your compiled files.
	minify: false,
}