public static bool IsSpecPackage(PackageAssets package) { if (package.PackageName == "application") { return(false); } if (package.PackageName == AssemblyPackageInfo.CreateFor(typeof(SpecificationGraph).Assembly).Name) { return(false); } return(true); }
public void AddSpecs(PackageAssets package) { var packageFolder = _packages[package.PackageName]; var javascriptFiles = package .AllFiles() .Where(x => x.MimeType == MimeType.Javascript).ToList(); addSpecs(javascriptFiles, packageFolder); associateSpecs(javascriptFiles); associateHtmlFiles(package, packageFolder); }
public static bool IsSpecPackage(PackageAssets package) { if (package.PackageName == "application") { return(false); } if (package.PackageName == typeof(IAssetFileGraph).Assembly.GetName().Name) { return(false); } if (package.PackageName == typeof(SpecificationGraph).Assembly.GetName().Name) { return(false); } if (package.PackageName == new AssemblyPackageInfo(typeof(SpecificationGraph).Assembly).Name) { return(false); } return(true); }
public void SetUp() { thePackageAssets = new PackageAssets("pak1"); theFiles = new AssetFileDataMother(thePackageAssets.AddFile); }
private static void associateHtmlFiles(PackageAssets package, SpecificationFolder packageFolder) { var htmlFiles = package.AllFiles().Where(x => x.MimeType == MimeType.Html).ToList(); packageFolder.AllSpecifications.Each(x => x.SelectHtmlFiles(htmlFiles)); }