From 2f360e53c39cfc4fa3bc28d15d12b560422c17f8 Mon Sep 17 00:00:00 2001 From: resurtm Date: Thu, 31 Oct 2013 17:55:44 +0600 Subject: [PATCH] Add CoffeeScript and TypeScript commands to AssetConverter. --- framework/yii/web/AssetConverter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/yii/web/AssetConverter.php b/framework/yii/web/AssetConverter.php index b7f406d..75a3106 100644 --- a/framework/yii/web/AssetConverter.php +++ b/framework/yii/web/AssetConverter.php @@ -28,6 +28,8 @@ class AssetConverter extends Component implements AssetConverterInterface 'scss' => ['css', 'sass {from} {to}'], 'sass' => ['css', 'sass {from} {to}'], 'styl' => ['js', 'stylus < {from} > {to}'], + 'coffee' => ['js', 'coffee -p {from} > {to}'], + 'ts' => ['js', 'tsc --out {to} {from}'], ]; /**