Skip to content

projectarchives/laravel-elixir-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-typescripts

That'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#options

Todo:

Allow multiple .ts file to be compiled at once. Now it only supports /**/*.ts or single file compilation

Inspiration:

https://github.com/JeffreyWay/laravel-elixir-stylus/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published