Beispiel #1
0
 /// <summary>
 /// process directory to config engine
 /// </summary>
 /// <param name="directoryPath">Directory full path</param>
 static void ConfigDirectory(string directoryPath)
 {
     var configEngine = new ConfigEngine();
     var settings = new Settings(directoryPath);
     foreach (string filename in Directory.GetFiles(directoryPath, "*" + settings.ChirpConfigFile, SearchOption.TopDirectoryOnly))
     {
         try
         {
             System.Console.WriteLine(string.Format("ConfigEngine -- {0}", filename));
             configEngine.Run(filename, null);
         }
         catch (System.IO.FileNotFoundException)
         {
             System.Console.WriteLine(string.Format("File not found in config file={0}", filename));
         }
     }
 }
Beispiel #2
0
        public void LoadActions()
        {
            if (this.engineManager == null || this.engineManager.IsDisposed) {
                this.engineManager = new EngineManager(this);
            }

            this.engineManager.Clear();
            this.engineManager.Add(YuiCssEngine = new YuiCssEngine());
            this.engineManager.Add(YuiJsEngine = new YuiJsEngine());
            this.engineManager.Add(DeanEdwardsPackerEngine = new DeanEdwardsPackerEngine());
            this.engineManager.Add(ClosureCompilerEngine = new ClosureCompilerEngine());
            this.engineManager.Add(LessEngine = new LessEngine());
            this.engineManager.Add(MsJsEngine = new MsJsEngine());
            this.engineManager.Add(MsCssEngine = new MsCssEngine());
            this.engineManager.Add(ConfigEngine = new ConfigEngine());
            this.engineManager.Add(ViewEngine = new ViewEngine());
            this.engineManager.Add(T4Engine = new T4Engine());
            this.engineManager.Add(CoffeeScriptEngine = new CoffeeScriptEngine());
            this.engineManager.Add(UglifyEngine = new UglifyEngine());
            this.engineManager.Add(JSHintEngine = new JSHintEngine());
            this.engineManager.Add(CSSLintEngine = new CSSLintEngine());
            this.engineManager.Add(SassEngine = new SassEngine());
        }