gulp-gopherjs
Version:
A GopherJS plugin for Gulp
37 lines (25 loc) • 690 B
Markdown
//www.gopherjs.org/) plugin for [Gulp](http://gulpjs.com/).
```bash
npm install --save gulp-gopherjs
```
```javascript
var gopher = require('gulp-gopherjs');
gulp.task('gopher', function() {
return gulp.src('main.go')
.pipe(gopher({/* options */}));
});
```
See [test/gulpfile.js](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.
```javascript
{
// Set a destination folder for the compiled files.
dest: './js',
// Set to trye if you want to minify your compiled files.
minify: false,
}
```
A [GopherJS](http: