#modernDotNet MODERN WEB DEVELOPMENT WORKFLOW BACKED BY .NET
//gulpfile.js
var gulp = require('gulp'); var coffee = require('gulp-coffee'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify');
gulp.src('app/js/**/*.coffee') .pipe(coffee())
.pipe(concat('app.js'))
.pipe(uglify())
.pipe(gulp.dest('dist/js'));
#$
gulp.task('coffee', function() { gulp.src('app/js/**/*.coffee') .pipe(coffee())
.pipe(concat('app.js')) .pipe(gulp.dest('test/js')) .pipe(uglify()) .pipe(gulp.dest('dist/js'));
});
:: 6. Publish to wwwroot call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 --fromDir "%DEPLOYMENT_TEMP%" --toDir "%DEPLOYMENT_TARGET%" --previousManifest "%PREVIOUS_MANIFEST_PATH%" --nextManifest "%NEXT_MANIFEST_PATH%" --ignore ".git;.hg;.deployment;deploy.cmd"
'
'
'
'
'
./staging/ βββ bin βββ css βββ img βββ js β about.html β index.html β web.config
./staging/ βββ bin βββ css βββ img βββ js β about.html β index.html β web.config
./wwwroot/ βββ bin βββ css βββ img βββ js β about.html β index.html β web.config
β
./staging/ βββ bin βββ css βββ img βββ js β about.html β index.html β web.config
./wwwroot/ βββ app_data βββ bin βββ css βββ img βββ js βββ log β about.html β index.html β web.config
β
./staging/ βββ bin βββ css βββ img βββ js β about.html β index.html β web.config
./wwwroot/ βββ app_data βββ bin βββ css βββ img βββ js βββ log β about.html β index.html β web.config
β
./staging/ βββ bin βββ css βββ img βββ js β index.html β web.config
./wwwroot/ βββ app_data βββ bin βββ css βββ img βββ js βββ log β about.html β index.html β web.config
β
./staging/ βββ bin βββ css βββ img βββ js β index.html β web.config
./wwwroot/ βββ app_data βββ bin βββ css βββ img βββ js βββ log β about.html β index.html β web.config
β
./staging/ βββ bin βββ css βββ img βββ js β index.html β web.config
./wwwroot/ βββ app_data βββ bin βββ css βββ img βββ js βββ log β index.html β web.config
β
:: 6. Publish to wwwroot call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 --fromDir "%DEPLOYMENT_TEMP%" --toDir "%DEPLOYMENT_TARGET%" --previousManifest "%PREVIOUS_MANIFEST_PATH%" --nextManifest "%NEXT_MANIFEST_PATH%" --ignore ".git;.hg;.deployment;deploy.cmd"
'
'
'
'
'
Visual Studio Solution βββ Processor Project βββ Processor.Tests Project βββ API Project
./Web/ βββ app βββ config βββ tests βββ vendor β bower.json β package.json β gulpfile.js
./Web/app/ βββ css β β _mixins.scss β β _variables.scss β β app.scss βββ img βββ js β β app.coffee β β controllers.coffee β β directives.js β β templates.coffee βββ pages βββ static
./Web/app/ βββ css β β _mixins.scss β β _variables.scss β β app.scss βββ img βββ js β β app.coffee β β controllers.coffee β β directives.js β β templates.coffee βββ pages βββ static
./Web/ βββ app βββ config βββ dist βββ generated βββ tests βββ vendor β βββ components β bower.json β package.json β gulpfile.js
./Web/ βββ app βββ config βββ dist βββ generated βββ tests βββ vendor β βββ components β bower.json β package.json β gulpfile.js
./Web/generated/ βββ css β β app.css βββ img βββ js β β app.js β index.html
:: deploy.cmd
:: 1. Restore NuGet packages "%NUGET_EXE%" restore "%DEPLOYMENT_SOURCE%\QueensEight.sln"
:: deploy.cmd
:: 1. Restore NuGet packages "%NUGET_EXE%" restore "%DEPLOYMENT_SOURCE%\QueensEight.sln"
:: 2. Build .NET Project with MSBuild "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\API\API.csproj" /t:Build;pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="%DEPLOYMENT_TEMP%"; AutoParameterizationWebConfigConnectionStrings=false; Configuration=Release; SolutionDir="%DEPLOYMENT_SOURCE%\" %SCM_BUILD_ARGS%
'
'
'
'
'
'
:: 3. Restore npm packages call :ExecuteCmd !NPM_CMD! install
:: 4. Build Web Client project with gulpJS call .\node_modules\.bin\gulp build
:: 5. Consolidate project output call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%\Web\dist" -t "%DEPLOYMENT_TEMP%" -p "%DEPLOYMENT_SOURCE%\Web\generated\manifest" -n "%DEPLOYMENT_SOURCE%\Web\generated\manifest" -i ".git;.hg;.deployment;deploy.cmd"
'
'
'
'
'
:: 6. Publish to wwwroot call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_TEMP%" -t "%DEPLOYMENT_TARGET%" -p "%PREVIOUS_MANIFEST_PATH%" -n "%NEXT_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
'
'
'
'
'
./ βββ artifacts β βββ wwwroot βββ Processor βββ Processor.Tests βββ API βββ Web β QueensEight.sln
./artifacts/wwwroot/ βββ bin βββ css β β app.css βββ img βββ js β β app.js β Global.asax β index.html β web.config