Skip to content

Instantly share code, notes, and snippets.

View jvanderbiest's full-sized avatar

Jonas Van der Biest jvanderbiest

View GitHub Profile
@jvanderbiest
jvanderbiest / bootstrap.ts
Last active April 12, 2020 18:13
Cordova webpack default configuration file
import * as Phaser from 'phaser';
import IntroScene from './scenes/intro.scene';
export class PhaserGame {
gameConfig = {
type: Phaser.AUTO,
width: 800,
height: 600,
physics: {
default: 'arcade',
param([string]$link, [string]$sas, [string]$tenantName)
Start-Sleep -s 15
$contentType = "application/vnd.swagger.link+json"
$apiId = $sas.substring($sas.indexOf("uid=") + 4);
$apiId = $apiId.substring(0, $apiId.indexOf("&ex="));
$apiUri = "https://$tenantName.management.azure-api.net/apis/{0}?api-version=2014-02-14-preview&import=true" -f $apiId
$apicontext = New-AzureApiManagementContext -ResourceGroupName "Api-Default-West-Europe" -ServiceName "***"
Import-AzureApiManagementApi -SpecificationUrl "http://***.azurewebsites.net/swagger/docs/v1" -SpecificationFormat Swagger -Path "suffix" -ApiId importedid -Context $apicontext
@jvanderbiest
jvanderbiest / OrganizeDropArtifacts.ps1
Created December 20, 2014 12:43
Organize Drop Artifacts for Codit.Blog.JsVsoBuild
Write-Host "Executing Script OrganizeDropArtifacts"
$PackageFolder = $env:TF_BUILD_BINARIESDIRECTORY + "\Package"
new-item $PackageFolder -itemtype directory
Write-Host "Created new folder $PackageFolder"
# Copy package directories + rename (generic for all packages)
Get-ChildItem -Path $env:TF_BUILD_BINARIESDIRECTORY -Filter "*_Package" -Recurse | Where-Object { $_.Attributes -eq "Directory"} | ForEach-Object {
Write-Host $_.FullName
@jvanderbiest
jvanderbiest / ps.log
Created December 20, 2014 12:42
PowerShell Log file
Run optional script after MSBuild00:00:23
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy RemoteSigned -NoProfile -NonInteractive -File "C:\a\src\OrganizeDropArtifacts.ps1"
Executing Script OrganizeDropArtifacts
Directory: C:\a\bin
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 12/19/2014 10:45 PM Package
Created new folder C:\a\bin\Package
C:\a\bin\Codit.Blog.JsVsoBuild\_PublishedWebsites\Codit.Blog.JsVsoBuild_Package
d---- 12/19/2014 10:45 PM Javascript_Output
@jvanderbiest
jvanderbiest / testproject
Created December 20, 2014 12:34
MSBuild single target to execute different target
<Project>
<Target Name="TfsOnlineBuild" DependsOnTargets="Build" />
</Project>
@jvanderbiest
jvanderbiest / logfile
Created December 20, 2014 12:00
MSBuild Log file output for Codit.Blog.JsVsoBuild
Build started 12/19/2014 11:27:01 PM.
1>Project "C:\a\src\Codit.Blog.JsVsoBuild\Codit.Blog.JsVsoBuild.csproj" on node 1 (TfsOnlineBuild target(s)).
1>ValidateGlobalPackageSetting:
$(PackageAsSingleFile) is True
$(PackageFileName) is C:\a\bin\Codit.Blog.JsVsoBuild\_PublishedWebsites\Codit.Blog.JsVsoBuild_Package\Codit.Blog.JsVsoBuild.zip. Validating...
PreBuildEvent:
if 'Release'=='Release' call "C:\a\src\Codit.Blog.JsVsoBuild\..\gruntCI.bat" "release" "C:\a\src\Codit.Blog.JsVsoBuild\"
'starting gruntCI.bat'
Running "karma:unit" (karma) task
INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/
@jvanderbiest
jvanderbiest / gruntCI.bat
Created December 20, 2014 11:50
Batch file to execute Grunt on build server
set TaskName=%1
set ProjectPath=%2
echo 'starting gruntCI.bat'
cd "%ProjectPath%"
REM Get to the solution root.
cd ..
attrib -r /S
cd "node_modules\.bin\"
call grunt.cmd %TaskName% --force
@jvanderbiest
jvanderbiest / prebuilt
Created December 20, 2014 11:48
Pre Built event for Codit.Blog.JsVsoBuild
if '$(Configuration)'=='Release' call "$(ProjectDir)..\gruntCI.bat" "release" "$(ProjectDir)"
@jvanderbiest
jvanderbiest / Gruntfile.js
Created December 20, 2014 11:10
Grunt configuration file for Codit.Blog.JsVsoBuild
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
karma: {
unit: {
configFile: 'karma.phantomjs.conf.js'
}
},
jshint: {
all: ['Gruntfile.js', 'Codit.Blog.JsVsoBuild/app/**/*.js', 'Codit.Blog.JsVsoBuild/test/**/*.js'],