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;
 }
예제 #3
0
 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;
 }
예제 #5
0
 public void FindScripts(AssetGraph graph)
 {
     if (_objects == null)
     {
         _objects = _includes.Select(graph.ObjectFor).ToList();
     }
 }
예제 #6
0
 public void FindScripts(AssetGraph graph)
 {
     if (_objects == null)
     {
         _objects = _includes.Select(graph.ObjectFor).ToList();
     }
 }
예제 #7
0
 public AssetCombinationBuildingActivator(IContainerFacility container, AssetGraph graph, IAssetCombinationCache cache, IAssetPipeline pipeline)
 {
     _container = container;
     _graph     = graph;
     _cache     = cache;
     _pipeline  = pipeline;
 }
예제 #8
0
        /// <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);
        }
예제 #9
0
        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;
        }
예제 #10
0
        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);
        }
예제 #11
0
            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;
                    }
                };
            }
예제 #12
0
 public AssetGraphConfigurationActivator(AssetGraph assets, IFileSystem fileSystem, AssetLogsCache logs)
 {
     _assets      = assets;
     _fileSystem  = fileSystem;
     _diagnostics = new AssetRegistrationDiagnostics(_assets, logs);
 }
 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);
 }
예제 #18
0
 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);
 }
예제 #22
0
        // 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;
 }
예제 #25
0
 public AssetPrecompilerActivator(IEnumerable <IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetPipeline assetPipeline)
 {
     _precompilers  = precompilers;
     _assetGraph    = assetGraph;
     _assetPipeline = assetPipeline;
 }
예제 #26
0
 public void Apply(IPackageLog log, IAssetPipeline pipeline, AssetGraph graph)
 {
     // TODO -- make this recording later?
     Replay(graph);
 }
예제 #27
0
 public void Apply(IPackageLog log, IAssetPipeline pipeline, AssetGraph graph)
 {
     // TODO -- make this recording later?
     Replay(graph);
 }
예제 #28
0
 public AssetDeclarationVerificationActivator(IAssetPipeline pipeline, AssetGraph graph, AssetLogsCache assetLogs)
 {
     _pipeline  = pipeline;
     _graph     = graph;
     _assetLogs = assetLogs;
 }
예제 #29
0
 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 AssetDeclarationVerificationActivator(IAssetFileGraph fileGraph, AssetGraph graph, AssetLogsCache assetLogs)
 {
     _fileGraph = fileGraph;
     _graph     = graph;
     _assetLogs = assetLogs;
 }
예제 #32
0
 public ScriptGraphFixture()
 {
     _graph = new AssetGraph();
 }
예제 #33
0
 public AssetPolicyActivator(IEnumerable<IAssetPolicy> policies, IAssetPipeline pipeline, AssetGraph graph)
 {
     _policies = policies;
     _pipeline = pipeline;
     _graph = graph;
 }
 public void Apply(IPackageLog log, IAssetPipeline pipeline, AssetGraph graph)
 {
     graph.ForEachSetName(WarmUpSet);
 }
예제 #35
0
 public AssetPolicyActivator(IEnumerable <IAssetPolicy> policies, IAssetPipeline pipeline, AssetGraph graph)
 {
     _policies = policies;
     _pipeline = pipeline;
     _graph    = graph;
 }
예제 #36
0
 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);
 }
예제 #39
0
            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;
                    }
                };
            }
예제 #40
0
 public ScriptWriter(AssetGraph assets, IUrlRegistry urls)
 {
     _assets = assets;
     _urls = urls;
 }
 public AssetDeclarationVerificationActivator(IAssetPipeline pipeline, AssetGraph graph)
 {
     _pipeline = pipeline;
     _graph = graph;
 }
예제 #42
0
 public void Apply(IPackageLog log, IAssetFileGraph fileGraph, AssetGraph graph)
 {
     // TODO -- make this recording later?
     Replay(graph);
 }
예제 #43
0
 public AssetDependencyFinderCache(AssetGraph graph)
 {
     _graph        = graph;
     _dependencies = new Cache <AssetNamesKey, IEnumerable <string> >(FindDependencies);
 }
예제 #44
0
        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 void Apply(IPackageLog log, IAssetFileGraph fileGraph, AssetGraph graph)
 {
     graph.ForEachSetName(WarmUpSet);
 }
 public AssetGraphConfigurationActivator(AssetGraph assets, IFileSystem fileSystem)
 {
     _assets = assets;
     _fileSystem = fileSystem;
 }
예제 #47
0
 public AssetPrecompilerActivator(IEnumerable<IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetPipeline assetPipeline)
 {
     _precompilers = precompilers;
     _assetGraph = assetGraph;
     _assetPipeline = assetPipeline;
 }
예제 #48
0
 public void SetUp()
 {
     theGraph = new AssetGraph();
 }
예제 #49
0
 public AssetPrecompilerActivator(IEnumerable <IAssetPrecompiler> precompilers, AssetGraph assetGraph, IAssetFileGraph assetFileGraph)
 {
     _precompilers   = precompilers;
     _assetGraph     = assetGraph;
     _assetFileGraph = assetFileGraph;
 }