Exemple #1
0
        public bool Process(IBase baseObject, Facet facet, IGeneratorConfiguration generatorConfiguration)
        {
            var projectRootPath = generatorConfiguration.ApplicationFolderHierarchy[IonicFileSystemType.AppProjectRoot];
            var appPath         = generatorConfiguration.ApplicationFolderHierarchy[IonicFileSystemType.App];
            var module          = generatorConfiguration.PushModuleAssembly <AngularModule>("App");
            var folder          = (Folder)generatorConfiguration.FileSystem[appPath];

            generatorConfiguration.AddPackageInstalls(this);

            module.BaseObject = baseObject.Parent;
            appModule         = (AngularModule)module;

            generatorConfiguration.SetModuleAssemblyFolder(folder);

            EmbeddedFilesGenerator.Generate(projectRootPath, generatorConfiguration);

            return(true);
        }