https://github.com/arandilopez/laravel-elixir-angularjs
This package is just an update of @Hrcc with laravel/elixir new api
https://github.com/arandilopez/laravel-elixir-angularjs
angular laravel laravel-elixir
Last synced: about 1 month ago
JSON representation
This package is just an update of @Hrcc with laravel/elixir new api
- Host: GitHub
- URL: https://github.com/arandilopez/laravel-elixir-angularjs
- Owner: arandilopez
- Created: 2015-08-06T05:00:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T21:47:40.000Z (over 9 years ago)
- Last Synced: 2023-12-26T07:07:15.678Z (over 2 years ago)
- Topics: angular, laravel, laravel-elixir
- Language: JavaScript
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Elixir for AngularJS
Based on [Hrcc Laravel Elixir Angular](https://github.com/HRcc/laravel-elixir-angular)
**This package is just an update of @Hrcc with laravel/elixir new api**
## Usage
> (Take it from [Hrcc Laravel Elixir Angular](https://github.com/HRcc/laravel-elixir-angular))
This is a simple wrapper around Laravel Elixir. Add it to your Elixir-enhanced Gulpfile, like so:
```javascript
var elixir = require('laravel-elixir');
require('laravel-elixir-angularjs');
elixir(function(mix) {
mix.angular();
});
```
This will scan your `resources/assets/angular` directory for all .js files. Generates *Sourcemaps*, concatenates and minifies (if environment is set to production) the final script.
Directory structure in `resources/assets/angular` is not forced, the only limitation is to provide at least one **\*.module.js** script with module initialization:
```javascript
angular.module('foo', ['other.module']);
```
Example use of a nested structure might look like this:
```
/resources
/angular
foo.module.js
/some-feature
some-feature.module.js
some-feature.controller.js
```
Finally, if you'd like to output to a different directory than the default `public/js/app`, then you may override this, while changing the name of resulting script if desired:
```javascript
mix.angular("resources/assets/angular/", "public/js/myapp/", "myapp.js");
```
## Why???
I just need this... I can't wait for an update, sorry...