Files
fn-serverless/fnctl/langs/node.go
C Cirello 46593d9bd8 fnctl: init - configuration over detection (#278)
This commit modifies how init detects runtime and entrypoints. It
assumes the following convention:

1 - All functions have a func.{lang} file - from which both
entrypoint and runtime are deduced.

2 - Entrypoints always are, depending on the language, "./func",
"{lang-exec} ./func.{lang}", "{lang-exec} ./func.{package}" (e.g.
Java's "func.jar" and PHP's "func.phar").
2016-11-14 15:32:10 -08:00

22 lines
390 B
Go

package langs
type NodeLangHelper struct {
}
func (lh *NodeLangHelper) Entrypoint() string {
return "node func.js"
}
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
}