Skip to content

Commit 5c9d212

Browse files
author
Jad Joubran
committed
v2.7 major elixir improvements
1 parent d9a5e0b commit 5c9d212

File tree

15 files changed

+184
-79
lines changed

15 files changed

+184
-79
lines changed

_jshintrc renamed to .jshintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"noarg": true,
77
"noempty": true,
88
"nonew": true,
9-
"maxlen": 140,
9+
"maxlen": 180,
1010
"boss": true,
1111
"eqnull": true,
1212
"eqeqeq": true,
@@ -25,4 +25,4 @@
2525
"module": false,
2626
"inject": false
2727
}
28-
}
28+
}

CHANGELOG.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
artisan ## Changelog
1+
## Changelog
2+
3+
### v2.7.0
4+
+ custom elixir ingredients setup & sample
5+
+ custom elixir task: make jshint optional
6+
+ custom elixir task: bower - much faster than the one previously used
7+
+ bower task now automatically uses mainFile from bower.json
8+
+ gulp & gulp watch are now much much faster than before
29

310
### v2.6.2
411
+ fixed elixir watcher for less
5-
+ artisan generator for creating a new service **artisan ng:service name**
6-
+ artisan generator for creating a new filter **artisan ng:filter name**
7-
+ artisan generator for creating a new config **artisan ng:config name**
12+
+ artisan generator for creating a new angular service **artisan ng:service name**
13+
+ artisan generator for creating a new angular filter **artisan ng:filter name**
14+
+ artisan generator for creating a new angular config **artisan ng:config name**
815

916
### v2.6.1
1017
+ updated bower dependencies (angular material released 0.10.1)
11-
+ added artisan generator for creating a new feature: **artisan ng:feature name**
18+
+ added artisan generator for creating a new angular feature: **artisan ng:feature name**
1219
+ improve generator to call controller with StudlyCase (StudlyCaseCtrl)
13-
+ artisan generator for creating a custom dialogs: **artisan ng:dialog name**
20+
+ artisan generator for creating a angular material custom dialogs: **artisan ng:dialog name**
1421

1522
### v2.6.0
1623
+ Update to [elixir 3.0](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/20)
@@ -98,7 +105,7 @@ artisan ## Changelog
98105

99106

100107
### v1.5.1
101-
+ jshint is now optional. Rename _jshintrc to .jshintrc. Check [issue #11](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/11)
108+
+ invalid now - jshint is now optional. Rename _jshintrc to .jshintrc. Check [issue #11](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/11)
102109

103110

104111
### v1.5.0

angular/app/login/login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
angular.module('app.controllers').controller('LoginCtrl', function ($scope, Restangular, $auth, $state){
55

6+
var credentials = {};
7+
68
// Use Satellizer's $auth service to login because it'll automatically save the JWT in localStorage
79
$auth.login(credentials).then(function (data){
810
// If login is successful, redirect to the users state
@@ -20,4 +22,4 @@
2022

2123
});
2224

23-
})();
25+
})();

angular/app/routes.run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
});
1313
$rootScope.$on("$viewContentLoaded", function(event, toState){
14-
Prism.highlightAll();
14+
window.Prism.highlightAll();
1515
});
1616
});
1717

elixir.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2+
"js": {
3+
"outputFolder": "public/js"
4+
},
25
"css": {
6+
"outputFolder": "public/css",
37
"less": {
48
"folder": "../../angular/"
59
}

gulpfile.js

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var elixir = require('laravel-elixir');
2-
require('laravel-elixir-angular');
2+
require('./tasks/angular.task.js');
3+
require('./tasks/bower.task.js');
34

45
process.env.DISABLE_NOTIFIER = true;
56

@@ -14,30 +15,11 @@ process.env.DISABLE_NOTIFIER = true;
1415
|
1516
*/
1617

17-
var bower_js = ['./bower_components/angular/angular.js',
18-
'./bower_components/angular-material/angular-material.js',
19-
'./bower_components/angular-animate/angular-animate.js',
20-
'./bower_components/angular-aria/angular-aria.js',
21-
'./bower_components/angular-ui-router/release/angular-ui-router.js',
22-
'./bower_components/restangular/dist/restangular.js',
23-
'./bower_components/lodash/lodash.js',
24-
'./bower_components/ngstorage/ngStorage.js',
25-
'./bower_components/svg-morpheus/compile/unminified/svg-morpheus.js',
26-
'./bower_components/angular-material-icons/angular-material-icons.js',
27-
'./bower_components/satellizer/satellizer.js',
28-
'./bower_components/angular-loading-bar/build/loading-bar.js',
29-
];
30-
var bower_css = ['./bower_components/angular-material/angular-material.css',
31-
'./bower_components/angular-material-icons/angular-material-icons.css',
32-
'./bower_components/angular-loading-bar/build/loading-bar.css',
33-
];
34-
3518
elixir(function(mix){
3619
mix
37-
.scripts(bower_js, 'public/js/vendor.js')
38-
.styles(bower_css, 'public/css/vendor.css')
39-
.angular('./angular/', 'public/js')
40-
.less('./angular/**/*.less')
20+
.bower()
21+
.angular('./angular/')
22+
.less('./angular/**/*.less', 'public/css')
4123
.copy('./angular/app/**/*.html', 'public/views/app/')
4224
.copy('./angular/directives/**/*.html', 'public/views/directives/')
4325
.copy('./angular/dialogs/**/*.html', 'public/views/dialogs/');

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
{
22
"dependencies": {
33
"laravel-elixir": "^3.0.0",
4-
"laravel-elixir-angular": "^1.0.1"
4+
"gulp-concat": "^2.6.0",
5+
"gulp-concat-sourcemap": "^1.3.1",
6+
"gulp-if": "^1.2.5",
7+
"gulp-jshint": "^1.9.0",
8+
"gulp-ng-annotate": "^1",
9+
"gulp-notify": "^2.0.0",
10+
"gulp-sourcemaps": "^1",
11+
"gulp-uglify": "^1",
12+
"jshint-stylish": "^2",
13+
"gulp-filter": "^1.0.2",
14+
"gulp-minify-css": "^0.3.11",
15+
"main-bower-files": "^2.1.0"
516
},
617
"devDependencies": {
718
"gulp": "^3.9.0"

public/css/vendor.css

Lines changed: 7 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/vendor.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/vendor.js

Lines changed: 18 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/vendor.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)