1.0.1 • Published 8 years ago
@polyphem/laravel-elixir-angular v1.0.1
Usage
This Laravel Elixir extension allows you to compile Angular 2.
Installation
First, pull in the extension through NPM.
npm install --save @polyphem/laravel-elixir-angular
Next, add it to your Elixir-enhanced Gulpfile, like so:
var elixir = require('laravel-elixir');
require('@polyphem/laravel-elixir-angular');
elixir(function(mix) {
mix.angular();
});
That's it! You're all set to go!
Usage
Assuming you write...
elixir(function(mix) {
mix.angular();
});
...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 angular()
method, like so:
mix.angular('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.angular(null, null, {});