Created
November 25, 2015 17:45
-
-
Save phillipsj/75848d11d8d4a4ab091f to your computer and use it in GitHub Desktop.
Compile JSX using Web Compiler and CAKE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task("CompileJSX") | |
.Does(() => { | |
var compilerConfigs = GetFiles("./src/Orchard.Web/Modules/**/compilerconfig.json"); | |
foreach(var compilerConfig in compilerConfigs){ | |
Information(string.Format("Compliing JSX for {0}.", compilerConfig.ToString())); | |
var webCompilerClean = new WebCompiler.CompilerCleanTask(); | |
webCompilerClean.FileName = compilerConfig.ToString(); | |
MSBuildTaskExecute(webCompilerClean); | |
var webCompilerBuild = new WebCompiler.CompilerBuildTask(); | |
webCompilerBuild.FileName = compilerConfig.ToString(); | |
MSBuildTaskExecute(webCompilerBuild); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment