Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public JSDependencies(IJSDependencies scriptPath)
     : this(new List <IJSDependencies> {
     scriptPath
 })
 {
 }