public AssetCombinationBuildingActivator(IContainerFacility container, AssetGraph graph, IAssetCombinationCache cache, IAssetPipeline pipeline) { _container = container; _graph = graph; _cache = cache; _pipeline = pipeline; }
public AssetCombinationBuildingActivator(AssetGraph graph, IAssetCombinationCache cache, IAssetFileGraph fileGraph, ICombinationPolicyCache combinations) { _graph = graph; _cache = cache; _fileGraph = fileGraph; _combinations = combinations; }
public AssetCombinationBuildingActivator(IContainerFacility container, AssetGraph graph, IAssetCombinationCache cache, IAssetFileGraph fileGraph) { _container = container; _graph = graph; _cache = cache; _fileGraph = fileGraph; }
public void FindScripts(AssetGraph graph) { if (_objects == null) { _objects = _includes.Select(graph.ObjectFor).ToList(); } }
/// <summary> /// Use this method in automated tests when you need to set up an /// AssetGraph /// </summary> /// <param name = "configure"></param> /// <returns></returns> public static AssetGraph Build(Action <AssetGraph> configure) { var graph = new AssetGraph(); configure(graph); graph.CompileDependencies(new PackageLog()); return(graph); }
private AssetGraph findAll() { var graph = new AssetGraph(); var files = findAssetFiles(); graph.Add(files.Select(x => new Asset(x))); _settings.Aliases.AllKeys.Each(alias => graph.StoreAlias(alias, _settings.Aliases[alias])); _settings.CdnAssets.Each(x => graph.RegisterCdnAsset(x)); return graph; }
private AssetGraph findAll() { var graph = new AssetGraph(); var files = findAssetFiles(); graph.Add(files.Select(x => new Asset(x))); _settings.Aliases.AllKeys.Each(alias => graph.StoreAlias(alias, _settings.Aliases[alias])); _settings.CdnAssets.Each(x => graph.RegisterCdnAsset(x)); return(graph); }
public Reader() { _graph = new AssetGraph(); _cache = new Lazy <AssetDependencyFinderCache>(() => { _graph.CompileDependencies(new PackageLog()); return(new AssetDependencyFinderCache(_graph)); }); _dslReader = new AssetDslReader(_graph); _action = text => { if (text.StartsWith("if", StringComparison.OrdinalIgnoreCase)) { _action = _dslReader.ReadLine; } }; }
public AssetGraphConfigurationActivator(AssetGraph assets, IFileSystem fileSystem, AssetLogsCache logs) { _assets = assets; _fileSystem = fileSystem; _diagnostics = new AssetRegistrationDiagnostics(_assets, logs); }
public AssetsEndpoint(AssetGraph graph, AssetLogsCache assetLogs) { _graph = graph; _assetLogs = assetLogs; }
public AssetPolicyActivator(IEnumerable<IAssetPolicy> policies, IAssetFileGraph fileGraph, AssetGraph graph) { _policies = policies; _fileGraph = fileGraph; _graph = graph; }
public AssetPolicyActivator(IEnumerable <IAssetPolicy> policies, IAssetFileGraph fileGraph, AssetGraph graph) { _policies = policies; _fileGraph = fileGraph; _graph = graph; }
public void Apply(IPackageLog log, IAssetFileGraph fileGraph, AssetGraph graph) { // TODO -- make this recording later? Replay(graph); }
public IGrammar SetupScriptGraph() { return Embed<ScriptGraphSetupFixture>("If the script graph is configured as") .Before((step, context) => { _graph = new AssetGraph(); context.Store(_graph); }); }
public void SetUp() { _compiled = false; theGraph = new AssetGraph(); }
public void SetUp() { graph = new AssetGraph(); var reader = new AssetDslReader(graph); reader.ReadLine("1 includes A,B,C"); reader.ReadLine("2 includes C,D"); reader.ReadLine("3 includes 1,E"); reader.ReadLine("D requires D1,D2"); reader.ReadLine("3 requires 4"); reader.ReadLine("4 includes jquery,validation.js"); reader.ReadLine("Combo includes 1,2"); reader.ReadLine("C-1 extends C"); reader.ReadLine("crud includes crudForm.js,validation.js"); reader.ReadLine("A requires crud"); graph.CompileDependencies(new PackageLog()); }
public void Apply(IPackageLog log, IAssetPipeline pipeline, AssetGraph graph) { graph.ForEachSetName(WarmUpSet); }
// This is tested through integration tests public static Task Build(BehaviorGraph behaviorGraph) { return behaviorGraph.Settings.GetTask<AssetSettings>() .RecordContinuation("Building the Asset Graph", t => { var graph = new AssetGraph(); var settings = t.Result; var files = findAssetFiles(behaviorGraph, settings); graph.Add(files.Select(x => new Asset(x))); settings.Aliases.AllKeys.Each(alias => graph.StoreAlias(alias, settings.Aliases[alias])); settings.CdnAssets.Each(x => graph.RegisterCdnAsset(x)); behaviorGraph.Services.AddService<IAssetGraph>(graph); }); }
public AssetPrecompilerActivator(IEnumerable<IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetFileGraph assetFileGraph) { _precompilers = precompilers; _assetGraph = assetGraph; _assetFileGraph = assetFileGraph; }
public AssetDeclarationVerificationActivator(IAssetPipeline pipeline, AssetGraph graph, AssetLogsCache assetLogs) { _pipeline = pipeline; _graph = graph; _assetLogs = assetLogs; }
public AssetPrecompilerActivator(IEnumerable <IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetPipeline assetPipeline) { _precompilers = precompilers; _assetGraph = assetGraph; _assetPipeline = assetPipeline; }
public void Apply(IPackageLog log, IAssetPipeline pipeline, AssetGraph graph) { // TODO -- make this recording later? Replay(graph); }
public AssetGatherer(AssetGraph graph, IEnumerable <string> names) { _graph = graph; _names = names; }
public AssetDeclarationVerificationActivator(IAssetFileGraph fileGraph, AssetGraph graph, AssetLogsCache assetLogs) { _fileGraph = fileGraph; _graph = graph; _assetLogs = assetLogs; }
public ScriptGraphFixture() { _graph = new AssetGraph(); }
public AssetPolicyActivator(IEnumerable<IAssetPolicy> policies, IAssetPipeline pipeline, AssetGraph graph) { _policies = policies; _pipeline = pipeline; _graph = graph; }
public AssetPolicyActivator(IEnumerable <IAssetPolicy> policies, IAssetPipeline pipeline, AssetGraph graph) { _policies = policies; _pipeline = pipeline; _graph = graph; }
public override void SetUp(ITestContext context) { _graph = context.Retrieve<AssetGraph>(); }
public void SetUp() { Directory.GetFiles(".", "*.script.config").Each(x => File.Delete(x)); assets = new AssetGraph(); activator = new AssetGraphConfigurationActivator(assets, new FileSystem(), new AssetLogsCache()); log = new PackageLog(); }
public void Apply(IPackageLog log, IAssetFileGraph fileGraph, AssetGraph graph) { graph.ForEachSetName(WarmUpSet); }
public Reader() { _graph = new AssetGraph(); _cache = new Lazy<AssetDependencyFinderCache>(() => { _graph.CompileDependencies(new PackageLog()); return new AssetDependencyFinderCache(_graph); }); _dslReader = new AssetDslReader(_graph); _action = text => { if (text.StartsWith("if", StringComparison.OrdinalIgnoreCase)) { _action = _dslReader.ReadLine; } }; }
public ScriptWriter(AssetGraph assets, IUrlRegistry urls) { _assets = assets; _urls = urls; }
public AssetDeclarationVerificationActivator(IAssetPipeline pipeline, AssetGraph graph) { _pipeline = pipeline; _graph = graph; }
public AssetDependencyFinderCache(AssetGraph graph) { _graph = graph; _dependencies = new Cache <AssetNamesKey, IEnumerable <string> >(FindDependencies); }
public void using_the_configure_method() { var graph = new AssetGraph(); var expression = new AssetsExpression(theRegistry, graph); expression.Configure(@" crud includes a.js, b.js, c.js "); graph.CompileDependencies(new PackageLog()); graph.AssetSetFor("crud").AllFileDependencies() .Select(x => x.Name) .ShouldHaveTheSameElementsAs("a.js", "b.js", "c.js"); }
public AssetGraphConfigurationActivator(AssetGraph assets, IFileSystem fileSystem) { _assets = assets; _fileSystem = fileSystem; }
public AssetPrecompilerActivator(IEnumerable<IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetPipeline assetPipeline) { _precompilers = precompilers; _assetGraph = assetGraph; _assetPipeline = assetPipeline; }
public void SetUp() { theGraph = new AssetGraph(); }
public AssetPrecompilerActivator(IEnumerable <IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetFileGraph assetFileGraph) { _precompilers = precompilers; _assetGraph = assetGraph; _assetFileGraph = assetFileGraph; }