File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ public class TransformBabel : Task
30
30
[ Required ]
31
31
public string SourceDir { get ; set ; }
32
32
33
+ /// <summary>
34
+ /// The file extension pattern of the JavaScript files to transpile. Optional, defaults to *.jsx
35
+ /// </summary>
36
+ public string FileExtensionPattern { get ; set ; } = "*.jsx" ;
37
+
33
38
/// <summary>
34
39
/// Executes the task.
35
40
/// </summary>
@@ -56,7 +61,7 @@ public override bool Execute()
56
61
/// <returns><c>true</c> on success</returns>
57
62
private bool ExecuteInternal ( )
58
63
{
59
- var files = Directory . EnumerateFiles ( SourceDir , "*.jsx" , SearchOption . AllDirectories ) ;
64
+ var files = Directory . EnumerateFiles ( SourceDir , FileExtensionPattern , SearchOption . AllDirectories ) ;
60
65
foreach ( var path in files )
61
66
{
62
67
var relativePath = path . Substring ( SourceDir . Length + 1 ) ;
You can’t perform that action at this time.
0 commit comments