Cacomania: tag

Cacomania

Merging files together with the PowerShell

Guido Krömer - 1674 days ago - Tags: , ,

After playing a round with TypeScript, I needed a way for merging all those single files together. Performing this task with Bash is quite simple. Under Windows there is no Bash, but a thing called PowerShell. The PowerShell has got a large amount of Bash like aliases, which makes the move from Bash to PowerShel really simple, as you can see in the script below.

$TARGET_FILE = "Full.ts"

rm $TARGET_FILE 

$FILES = ls -Recurse -Filter "*.ts"

foreach ($FILE in $FILES) {
  cat $file.FullName >> $TARGET_FILE 
}

tsc $TARGET_FILE

Comment

TypeScript, why you should fall in love with it

Guido Krömer - 1687 days ago - Tags: , ,

The possibilities with JavaScript are awesome, but the maintainability is sometime really crappy, this is why Microsoft released TypeScript, which is a class based and optionally strictly typed language, as a superset of JavaScript. The Browsers does not need to support TypeScript since it gets compiled into JavaScript, the compilation is still readable, too.

Visual Studio Express 2012 for Web, TypeScript with IntelliSense.

read more TEST

Comment