private static void addServices(IServiceRegistry registry) { var pipeline = new AssetPipeline(); registry.SetServiceIfNone<IAssetPipeline>(pipeline); registry.SetServiceIfNone<IAssetFileRegistration>(pipeline); registry.SetServiceIfNone(new AssetGraph()); registry.SetServiceIfNone(new AssetLogsCache()); registry.SetServiceIfNone<IAssetTagWriter, AssetTagWriter>(); registry.SetServiceIfNone<ICombinationDeterminationService, CombinationDeterminationService>(); registry.SetServiceIfNone<IAssetCombinationCache, AssetCombinationCache>(); registry.SetServiceIfNone<IAssetDependencyFinder, AssetDependencyFinderCache>(); registry.SetServiceIfNone<IAssetTagPlanner, AssetTagPlanner>(); registry.SetServiceIfNone<IAssetTagBuilder, AssetTagBuilder>(); registry.SetServiceIfNone<IAssetRequirements, AssetRequirements>(); registry.SetServiceIfNone<IMissingAssetHandler, TraceOnlyMissingAssetHandler>(); registry.SetServiceIfNone<IAssetTagPlanCache, AssetTagPlanCache>(); registry.SetServiceIfNone<ITransformerPolicyLibrary, TransformerPolicyLibrary>(); registry.SetServiceIfNone<IContentPlanner, ContentPlanner>(); registry.SetServiceIfNone<IContentPlanCache, ContentPlanCache>(); registry.SetServiceIfNone<IContentPipeline, ContentPipeline>(); registry.SetServiceIfNone<IContentWriter, ContentWriter>(); registry.SetServiceIfNone<IETagGenerator<IEnumerable<AssetFile>>, AssetFileEtagGenerator>(); }
public void SetUp() { thePipeline = new AssetPipeline(); var builder = new AssetPipelineBuilder(new FileSystem(), thePipeline, new PackageLog()); builder.LoadFiles(new PackageAssetDirectory{ Directory = FileSystem.Combine("..", "..", "Jasmine", "TestPackage2"), PackageName = "Pak2" }); theGraph = new SpecificationGraph(thePipeline); }
public AssetServicesRegistry() { var pipeline = new AssetPipeline(); SetServiceIfNone<IAssetPipeline>(pipeline); SetServiceIfNone<IAssetFileRegistration>(pipeline); SetServiceIfNone(new AssetGraph()); SetServiceIfNone(new AssetLogsCache()); SetServiceIfNone<IAssetCacheHeaders, AssetCacheHeaders>(); SetServiceIfNone<IAssetTagWriter, AssetTagWriter>(); SetServiceIfNone<ICombinationDeterminationService, CombinationDeterminationService>(); SetServiceIfNone<IAssetCombinationCache, AssetCombinationCache>(); SetServiceIfNone<IAssetDependencyFinder, AssetDependencyFinderCache>(); SetServiceIfNone<IAssetTagPlanner, AssetTagPlanner>(); SetServiceIfNone<IAssetTagBuilder, AssetTagBuilder>(); SetServiceIfNone<IAssetRequirements, AssetRequirements>(); SetServiceIfNone<IMissingAssetHandler, TraceOnlyMissingAssetHandler>(); SetServiceIfNone<IAssetTagPlanCache, AssetTagPlanCache>(); SetServiceIfNone<ITransformerPolicyLibrary, TransformerPolicyLibrary>(); SetServiceIfNone<IContentPlanner, ContentPlanner>(); SetServiceIfNone<IContentPlanCache, ContentPlanCache>(); SetServiceIfNone<IContentPipeline, ContentPipeline>(); SetServiceIfNone<IContentWriter, ContentWriter>(); SetServiceIfNone<IETagGenerator<IEnumerable<AssetFile>>, AssetFileEtagGenerator>(); SetServiceIfNone<IAssetContentCache, AssetContentCache>(); SetServiceIfNone<IAssetFileChangeListener, AssetFileChangeListener>(); SetServiceIfNone<IAssetFileWatcher, AssetFileWatcher>(); FillType(typeof (IActivator), typeof (AssetPrecompilerActivator)); FillType(typeof(IActivator), typeof(AssetGraphConfigurationActivator)); FillType(typeof(IActivator), typeof(AssetPipelineBuilderActivator)); FillType(typeof(IActivator), typeof(AssetDeclarationVerificationActivator)); FillType(typeof(IActivator), typeof(MimetypeRegistrationActivator)); FillType(typeof(IActivator), typeof(AssetCombinationBuildingActivator)); FillType(typeof(IActivator), typeof(AssetPolicyActivator)); FillType(typeof(IActivator), typeof(AssetFileWatchingActivator)); }
public void SetUp() { system = new FileSystem(); system.DeleteDirectory(AppDirectory); system.DeleteDirectory(PackageDirectory); writeFiles(); thePipeline = new AssetPipeline(); theBuilder = new AssetPipelineBuilder(new FileSystem(), thePipeline, new PackageLog()); theBuilder.LoadFiles(new PackageAssetDirectory(){ Directory = AppDirectory, PackageName = AssetPipeline.Application }); theBuilder.LoadFiles(new PackageAssetDirectory(){ Directory = PackageDirectory, PackageName = "pak1" }); }
public void SetUp() { thePipeline = new AssetPipeline(); theFiles = new AssetFileDataMother(thePipeline.AddFile); }
public void SetUp() { packageDirectory = ".".ToFullPath(); _packages = new List<IPackageInfo>(); AssetFolderIs = AssetFolder.scripts; writeFile("a.js"); writeFile("b.js"); writeFile("folder1/c.js"); writeFile("folder2/d.js"); AssetFolderIs = AssetFolder.styles; writeFile("main.css"); writeFile("page.css"); writeFile("folder1/a.css"); startPackage("pak1"); AssetFolderIs = AssetFolder.scripts; writeFile("e.js"); writeFile("f.js"); startPackage("pak2"); AssetFolderIs = AssetFolder.styles; writeFile("a.css"); writeFile("b.css"); writeFile("c.css"); startPackage("pak3"); AssetFolderIs = AssetFolder.scripts; writeFile("a.js"); thePipeline = new AssetPipeline(); var activator = new AssetPipelineBuilderActivator(thePipeline,new AssetLogsCache()); theLog = new PackageLog(); activator.Activate(_packages, theLog); Debug.WriteLine(theLog.FullTraceText()); }
public void SetUp() { _thePipeline = new AssetPipeline(); _theFile = new AssetFile("a.js"); _thePath = new AssetPath("pak1", "a.js", AssetFolder.scripts); _thePipeline.AddFile(_thePath, _theFile); }