github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/fn/langs/node.go (about)

     1  package langs
     2  
     3  type NodeLangHelper struct {
     4  	BaseHelper
     5  }
     6  
     7  func (lh *NodeLangHelper) Entrypoint() string {
     8  	return "node func.js"
     9  }
    10  
    11  func (lh *NodeLangHelper) HasPreBuild() bool {
    12  	return false
    13  }
    14  
    15  // PreBuild for Go builds the binary so the final image can be as small as possible
    16  func (lh *NodeLangHelper) PreBuild() error {
    17  	return nil
    18  }
    19  
    20  func (lh *NodeLangHelper) AfterBuild() error {
    21  	return nil
    22  }