Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.
/ go-bindata-npm Public archive

npm package for go-bindata -- useful for compiling go assets when a full go environment is not available

License

Notifications You must be signed in to change notification settings

knq/go-bindata-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

go-bindata is a simple nodejs package that bundles binary versions of go-bindata. Currently version 3.1.0 (rev: bfe36d3) go-bindata binaries for Linux and OS X are included in this package.

This package is useful when you need to build binary go assets and a full go environment may not be available (such as on a build host, or cloud vm, etc.). As such, it can be used as a self-contained go-bindata packager for use on automated Gulp or Grunt builds.

Installation

Install package via npm:

npm install --save go-bindata

Using

The package exports only one function, that when run executes the included binary (respective to platform), and passes the supplied parameters and paths to the executable.

The parameters are the same as supported by the go-bindata binary, and the return value is an object (the same as returned by child_process.spawnSync).

For example:

#!/usr/bin/env node

var gobindata = require('go-bindata');

gobindata({
  "o": "myfile.go",
  "nocompress": true,
  "ignore": ".gitignore",
}, 'data/', '/path/to/dir2/...');

About

npm package for go-bindata -- useful for compiling go assets when a full go environment is not available

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published