Exemplo n.º 1
0
        public override void Run()
        {
            if (options.ContainsKey("module"))
            {
                string targetModule = options["module"];
                CompileModule(targetModule);
            }
            else
            {
                CompileProject();
            }

            GenerateMetaCommand generateMeta = new GenerateMetaCommand();

            generateMeta.ParseArguments(new string[0]);
            generateMeta.Run();
        }
Exemplo n.º 2
0
        public override void Run()
        {
            if (options.ContainsKey("module"))
            {
                string targetModule = options["module"];
                CompileModule(targetModule);
            }
            else
            {
                CompileProject();
            }

            CreateProjectPathsFile();

            if (options.ContainsKey("exports"))
            {
                IndexExportsCommand exportsCommand = new IndexExportsCommand();
                exportsCommand.ParseArguments(new string[0]);
                exportsCommand.Run();
                exportsCommand.SaveConfig();
                this.config = ConfigHelper.Read();
            }

            CreateExportsFiles(config);
            CreateModuleTableFile(config);

            GenerateMetaCommand generateMeta = new GenerateMetaCommand();

            generateMeta.ParseArguments(new string[0]);
            generateMeta.Run();

            CheckValidityCommand checkValidityCommand = new CheckValidityCommand();

            checkValidityCommand.ParseArguments(new string[0]);
            checkValidityCommand.Run();
        }