Skip to content

Commit

Permalink
Meteor 3 scanner (#3724)
Browse files Browse the repository at this point in the history
* Meteor 3.0 scanner

* config updates

* detect Meteor version

* Delete templates

* Update scanner config

* Move Meteor up in scanner

* package mapping change

* delete Meteor Scanner

* set Env in jsFramework scanner
  • Loading branch information
kylemclaren committed Jul 12, 2024
1 parent 2b35303 commit fffe5b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/command/extensions/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ var PlatformMap = map[string]string{
"NodeJS": "node",
"NodeJS/Prisma": "node",
"Laravel": "php-laravel",
"Meteor": "javascript-meteor",
"NestJS": "node",
"NextJS": "javascript-nextjs",
"Nuxt": "javascript-vue",
Expand Down
6 changes: 6 additions & 0 deletions scanner/jsFramework.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ func configureJsFramework(sourceDir string, config *ScannerConfig) (*SourceInfo,
} else if deps["gatsby"] != nil {
srcInfo.Family = "Gatsby"
srcInfo.Port = 8080
} else if startScript, ok := scripts["start"].(string); ok && strings.Contains(startScript, "meteor") {
srcInfo.Family = "Meteor"
srcInfo.Env = map[string]string{
"PORT": "3000",
"ROOT_URL": "APP_FQDN",
}
} else if deps["@nestjs/core"] != nil {
srcInfo.Family = "NestJS"
} else if deps["next"] != nil {
Expand Down

0 comments on commit fffe5b1

Please sign in to comment.