From 3d245db6e089b9cce1b8791ef9e0e58f3b5d9fa5 Mon Sep 17 00:00:00 2001 From: Rubens Mariuzzo Date: Thu, 28 Jul 2016 16:58:16 -0400 Subject: [PATCH] =?UTF-8?q?Syntax=20highlighting=20added=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6905964..c623053 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,15 @@ You have to install [Laravel's Elixir](http://laravel.com/docs/master/elixir)(Ve ## Upgrade The signature was changed to the following: -``` + +```js mix.typescript(src, output, options); ``` ## Installation Install with Node.js -``` + +```js npm install elixir-typescript --save ``` @@ -25,7 +27,7 @@ A simple [gulp-typescript](https://github.com/ivogabe/gulp-typescript) wrapper i Add it to your Elixir-enhanced Gulpfile, like so: -``` +```js var elixir = require('laravel-elixir'); // import the dependency @@ -40,13 +42,13 @@ This will compile the `app.ts` file in `resources/assets/typescript/` and concat If you'd like to output to a different directory than the default `public/js`, then you may override this by provide a path for `output` as well. -``` +```js mix.typescript('app.js', 'public/js/foo/bar.js'); ``` Further you could insert multiple files like -``` +```js elixir(function(mix) { mix.typescript(['module1.ts', 'module2.ts']); });