//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
./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"
'
'
'
'
'
./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
:: 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/ ├── bin ├── css │ └ app.css ├── img ├── js │ └ app.js ├ Global.asax ├ index.html └ web.config