0.1.1 • Published 9 years ago
laravel-elixir-typescripts v0.1.1
laravel-elixir-typescript WIP
Usage
This Laravel Elixir extension allows you to compile Typescript.
Installation
First, pull in the extension through NPM.
npm install --save-dev laravel-elixir-typescriptsThat's it! You're all set to go!
Usage
elixir(function(mix) {
mix.typescript('/**/*.ts');
});...this will compile all of your resources/assets/typescript files to ./public/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('/**/*.ts', './public/scripts')If you want to override Typescript plugin options by passing custom options, you may pass an object as the third argument.
mix.typescript('/**/*.ts', null, {});
// See options at: https://www.npmjs.com/package/gulp-typescript#optionsTodo:
Allow multiple .ts file to be compiled at once. Now it only supports /**/*.ts or single file compilation
Inspiration: