Files
fn-serverless/fnctl/langs/node.go
Travis Reeder 3357476583 Updates to fnctl to make UX better (#272)
* See the hello/go README for how this all works now.

* Node support for fnctl auto build

* Updated based on PR comments.
2016-11-14 10:10:29 -08:00

24 lines
451 B
Go

package langs
import "fmt"
type NodeLangHelper struct {
}
func (lh *NodeLangHelper) Entrypoint(filename string) (string, error) {
return fmt.Sprintf("node %v", filename), nil
}
func (lh *NodeLangHelper) HasPreBuild() bool {
return false
}
// PreBuild for Go builds the binary so the final image can be as small as possible
func (lh *NodeLangHelper) PreBuild() error {
return nil
}
func (lh *NodeLangHelper) AfterBuild() error {
return nil
}