Skip to content

cescoferraro/gulp-golang

This branch is 12 commits ahead of nowk/gulp-go:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f9eea51 · Aug 30, 2016

History

35 Commits
Aug 30, 2016
Aug 30, 2016
Aug 30, 2016
Aug 30, 2016
Aug 30, 2016
Aug 30, 2016
Aug 30, 2016
Sep 24, 2015
Sep 24, 2015
Aug 30, 2016
Sep 24, 2015
Sep 24, 2015
Aug 30, 2016
Mar 7, 2015
Aug 30, 2016

Repository files navigation

gulp-golang

A gulp wrapper for golang commands. Completely inspired by gulp-go. This aims to let users have better control of their golang environment with the build system. Because go run does not solve all problems.

Goals

Build a binary, either with go buildor go install and run it with gulp. (This allows us to easily package an app with docker.)

Install

npm install https://github.com/cescoferraro/gulp-golang

Usage

var gulp   = require("gulp");
var golang = require("gulp-golang");

gulp.task('build', function () { golang.build('main.go', "sample") });
gulp.task('spawn', function () { golang.spawn() })
gulp.task('run', function (callback) { sequence('build', 'spawn')(callback) })

gulp.task('watch', function (callback) {
  golang.livereload().listen()
  gulp.start('run')

  watch('**/*.go', function () {
    gulp.start('run')
    golang.livereload().reload()
  });
});

License

MIT

Packages

No packages published

Languages

  • JavaScript 90.8%
  • Go 5.9%
  • Makefile 2.0%
  • Shell 1.3%