Skip to content

Commit

Permalink
Add new javascript profile
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Aug 29, 2020
1 parent 0d2f54f commit 3ad09c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/profile/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ var Magento2 = Profile{
var VueStorefront = Profile{
fileExtensions: []string{".css", ".js", ".sass", ".ts"},
}

var Javascript = Profile{
fileExtensions: []string{".js", ".ts"},
}
2 changes: 2 additions & 0 deletions internal/profile/validator/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ func IsPathValid(path string, profileName string) bool {
selectedProfile = profile.Magento2Theme
case "vue-storefront":
selectedProfile = profile.VueStorefront
case "javascript":
selectedProfile = profile.Javascript
default:
selectedProfile = profile.Default
}
Expand Down

0 comments on commit 3ad09c0

Please sign in to comment.