You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,23 +30,33 @@ var elixir = require('laravel-elixir');
30
30
var elixirTypscript = require('elixir-typescript');
31
31
32
32
elixir(function(mix) {
33
-
mix.typescript('app.js');
33
+
mix.typescript('app.ts');
34
34
});
35
35
```
36
36
37
-
This will compile all *.ts files in your `resources/assets/typescript/` folder and concat the compiled content into `public/js/app.js`.
37
+
This will compile the `app.ts` file in `resources/assets/typescript/` and concat the compiled content into `public/js/app.js`.
38
38
39
-
If you'd like to output to a different directory than the default `public/js`, then you may override this as well.
39
+
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.
40
40
41
41
```
42
-
mix.typescript('app.js', 'public/js/foo/bar');
42
+
mix.typescript('app.js', 'public/js/foo/bar.js');
43
43
```
44
44
45
+
Further you could insert multiple files like
46
+
47
+
```
48
+
elixir(function(mix) {
49
+
mix.typescript(['module1.ts', 'module2.ts']);
50
+
});
51
+
```
52
+
53
+
### tsconfig.json
54
+
The project file is also supported. Just put your file into the typescript asset folder and the pluging will automatically use it.
55
+
45
56
## Parameters
46
57
47
58
Bellow is the list of the available parameters:
48
59
49
-
-**outputFileName**: Filename for output
50
-
-**outputFolder**(optional): Where to place the output file. Default: `public/js/`
51
-
-**search** (optional): filter for input files, can also be a direct path to one file like `app.ts`. Defaults: `/**/*.ts`
60
+
-**src**: Filename for output
61
+
-**output**(optional): Where to place the output file. Default: `public/js/`
52
62
-**options** (optional): Options to forward to the `gulp-typescript` used for compiling. All options under https://github.com/ivogabe/gulp-typescript#options
0 commit comments