Skip to content

SourceR85/laravel-elixir-typescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ws-laravel-elixir-typescript

Forked from jfoliveira which forked from okaufmann which forked from laravel-elixir-typescript by MikeyAlder.

Since none of these repositories were no longer maintained, I decided to take the job. Feel free to contribute, Pull Request or anything.

Prerequirement

You have to install Laravel's Elixir(Version 3.0 or higher) and its dependencies first.

Installation

Install with Node.js

npm install elixir-typescript

Usage

A simple gulp-typescript wrapper ingredient for Laravel Elixir.

Add it to your Elixir-enhanced Gulpfile, like so:

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

// import the dependency
var elixirTypscript = require('elixir-typescript');

elixir(function(mix) {
  mix.typescript('app.js');
});

This will compile all *.ts files in your resources/assets/typescript/ folder and concat the compiled content into public/js/app.js.

If you'd like to output to a different directory than the default public/js, then you may override this as well.

mix.typescript('app.js', 'public/js/foo/bar');

About

Gulp-Typescript plugin for Laravel Elixir

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%