This repository was archived by the owner on Oct 30, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ You have to install [Laravel's Elixir](http://laravel.com/docs/master/elixir)(Ve
1010
1111## Upgrade
1212The signature was changed to the following:
13- ```
13+
14+ ``` js
1415mix .typescript (src, output, options);
1516```
1617
1718## Installation
1819Install with Node.js
19- ```
20+
21+ ``` js
2022npm install elixir- typescript -- save
2123```
2224
@@ -25,7 +27,7 @@ A simple [gulp-typescript](https://github.com/ivogabe/gulp-typescript) wrapper i
2527
2628Add it to your Elixir-enhanced Gulpfile, like so:
2729
28- ```
30+ ``` js
2931var elixir = require (' laravel-elixir' );
3032
3133// import the dependency
@@ -40,13 +42,13 @@ This will compile the `app.ts` file in `resources/assets/typescript/` and concat
4042
4143If 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.
4244
43- ```
45+ ``` js
4446mix .typescript (' app.js' , ' public/js/foo/bar.js' );
4547```
4648
4749Further you could insert multiple files like
4850
49- ```
51+ ``` js
5052elixir (function (mix ) {
5153 mix .typescript ([' module1.ts' , ' module2.ts' ]);
5254});
You can’t perform that action at this time.
0 commit comments