private string[] include(IJSDependencies current) { List <string> references = new List <string>(); string[] responses; string currentPath = mapPath(current.Path); if (current.SubDirectories) { string[] directories = Directory.GetDirectories(currentPath); foreach (string directory in directories) { references.AddRange(include(new JSDependency { Path = getRelativePath(directory) })); } } references.AddRange(getFiles(currentPath)); responses = references.ToArray(); return(responses); }
public JSDependencies(IJSDependencies scriptPath) : this(new List <IJSDependencies> { scriptPath }) { }