1.0.1 • Published 8 years ago

@polyphem/laravel-elixir-typescript v1.0.1

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
8 years ago

Usage

This Laravel Elixir extension allows you to compile Typescript.

Installation

First, pull in the extension through NPM.

npm install --save @polyphem/laravel-elixir-typescript

Next, add it to your Elixir-enhanced Gulpfile, like so:

var elixir = require('laravel-elixir');

require('@polyphem/laravel-elixir-typescript');

elixir(function(mix) {
mix.typescript();
});

That's it! You're all set to go!

Usage

Assuming you write...

elixir(function(mix) {
mix.typescript();
});

...this will compile your resources/assets/js/**/*.ts file to ./public/js/all.js.

If you'd like to set a different output directory, you may pass a second argument to the typescript() method, like so:

mix.typescript('public/js', 'resources/assets/js/')

Finally, if you want to override the Typescript plugin options, you may pass an object as the third argument.

mix.typescript(null, null, {});
1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago