github.com/leowmjw/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/node/meta.go (about) 1 package nodeapp 2 3 import ( 4 "github.com/hashicorp/otto/app" 5 "github.com/hashicorp/otto/appfile/detect" 6 ) 7 8 // AppFactory is the factory for this app 9 func AppFactory() app.App { 10 return &App{} 11 } 12 13 // Meta is the metadata for this app type 14 var Meta = &app.Meta{ 15 Tuples: Tuples, 16 Detectors: Detectors, 17 } 18 19 // Tuples is the list of tuples that this built-in app implementation knows 20 // that it can support. 21 var Tuples = app.TupleSlice([]app.Tuple{ 22 {"node", "aws", "simple"}, 23 }) 24 25 // Detectors is the list of detectors that trigger this app to be used. 26 var Detectors = []*detect.Detector{ 27 &detect.Detector{ 28 Type: "node", 29 File: []string{"package.json"}, 30 31 // Slightly lower priority since many web frameworks can contain 32 // a package.json these days while being written in another 33 // language. 34 Priority: -1, 35 }, 36 }