Exemple #1
0
 /// <summary>
 /// Crea las carpetas y los index, de cada una.
 /// </summary>
 /// <param name="args">argumentos de la configuración.</param>
 public override void OnBeforeBarrelGeneration(OnBeforeBarrelGenerationArgs args)
 {
     AddBarrel("metadata", BarrelScope.Files);
     AddBarrel("index-model", BarrelScope.Files);
     AddBarrel("model", BarrelScope.Files);
     AddBarrel("input-model", BarrelScope.Files);
     AddBarrel(".", BarrelScope.Directories);
 }
Exemple #2
0
 public override void OnBeforeBarrelGeneration(OnBeforeBarrelGenerationArgs args)
 {
     AddBarrel("model/main", BarrelScope.Files);
     AddBarrel("model/enums", BarrelScope.Files);
     AddBarrel("model/ts", BarrelScope.Files | BarrelScope.Directories);
     AddBarrel("data", BarrelScope.Files | BarrelScope.Directories);
     AddBarrel("model", BarrelScope.Directories);
     AddBarrel(".", BarrelScope.Directories);
 }
Exemple #3
0
        public override void OnBeforeBarrelGeneration(OnBeforeBarrelGenerationArgs args)
        {
            IEnumerable <string> directories = GetAllDirectoriesRecursive(args.GeneratorOptions.BaseOutputDirectory)
                                               .Select(x => GetPathDiff(args.GeneratorOptions.BaseOutputDirectory, x));

            foreach (string directory in directories)
            {
                AddBarrel(directory);
            }

            AddBarrel(".");

//            AddBarrel("test-classes");
//            AddBarrel("default-export", BarrelScope.Directories);
//            AddBarrel("very");
//            AddBarrel("very/nested/directory");
//            AddBarrel("no", BarrelScope.Files);
//            AddBarrel("test-interfaces", BarrelScope.Directories);
        }