@polyphem/laravel-elixir-angular
v1.0.1
Published
Laravel Elixir Angular Compiler Extension
Maintainers
Readme
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-angularNext, 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, {});