ng-demos
ng-demos copied to clipboard
modular gulp build failing
[10:30:09] Using gulpfile ~/angular/ng-demos/modular/gulpfile.js
[10:30:09] Starting 'analyze'...
[10:30:09] Analyzing source with JSHint, JSCS, and Plato
[10:30:09] Running JSHint
[10:30:09] [ './src/client/app/**/*module*.js',
'./src/client/app/**/*.js',
'!./src/client/app/**/*-spaghetti.js',
'./src/client/test/specs/*.spec.js',
'./src/server/**/*.js' ]
[10:30:09] Running JSCS
[10:30:09] Running Plato
[10:30:09] Starting 'templatecache'...
[10:30:09] Creating an AngularJS $templateCache
[10:30:09] Starting 'vendorjs'...
[10:30:09] Bundling, minifying, and copying the Vendor JavaScript
[10:30:09] Starting 'css'...
[10:30:09] Bundling, minifying, and copying the app's CSS
[10:30:09] Starting 'vendorcss'...
[10:30:09] Compressing, bundling, copying vendor CSS
[10:30:09] Starting 'images'...
[10:30:09] Compressing, caching, and copying images
[10:30:10] Starting 'fonts'...
[10:30:10] Copying fonts
[10:30:11] all.min.css went from 34.58 kB to 21.88 kB and is 36.73% smaller.
[10:30:11] vendor.min.css went from 124.51 kB to 122.41 kB and is 1.69% smaller.
[10:30:11] Finished 'css' after 2 s
[10:30:11] Finished 'vendorcss' after 1.79 s
[10:30:11] { total: { jshint: 0, sloc: 904, maintainability: 2225.4182693897424 },
average: { sloc: 32, maintainability: '79.48', jshint: '0.00' } }
[10:30:16] vendor.min.js went from 279.66 kB to 273.01 kB and is 2.38% smaller.
[10:30:16] Finished 'fonts' after 6.72 s
[10:30:16] Finished 'vendorjs' after 7.31 s
[10:30:16] Finished 'images' after 7 s
events.js:141
throw er; // Unhandled 'error' event
^
Error: Expected indentation of 12 characters at avengers/avengers.js :
16 |
17 | function activate() {
18 |// Using a resolver on all routes or dataservice.ready in every controller
--------------------^
19 |// var promises = [getAvengers()];
20 |// return dataservice.ready(promises).then(function(){
Expected indentation of 12 characters at avengers/avengers.js :
17 | function activate() {
18 |// Using a resolver on all routes or dataservice.ready in every controller
19 |// var promises = [getAvengers()];
--------------------^
20 |// return dataservice.ready(promises).then(function(){
21 | return getAvengers().then(function() {
Expected indentation of 12 characters at avengers/avengers.js :
18 |// Using a resolver on all routes or dataservice.ready in every controller
19 |// var promises = [getAvengers()];
20 |// return dataservice.ready(promises).then(function(){
--------------------^
21 | return getAvengers().then(function() {
22 | logger.info('Activated Avengers View');
Expected indentation of 12 characters at dashboard/dashboard.js :
25 | function activate() {
26 | var promises = [getAvengerCount(), getAvengersCast()];
27 |// Using a resolver on all routes or dataservice.ready in every controller
--------------------^
28 |// return dataservice.ready(promises).then(function(){
29 | return $q.all(promises).then(function() {
Expected indentation of 12 characters at dashboard/dashboard.js :
26 | var promises = [getAvengerCount(), getAvengersCast()];
27 |// Using a resolver on all routes or dataservice.ready in every controller
28 |// return dataservice.ready(promises).then(function(){
--------------------^
29 | return $q.all(promises).then(function() {
30 | logger.info('Activated Dashboard View');
Expected indentation of 12 characters at layout/shell.js :
21 | function activate() {
22 | logger.success(config.appTitle + ' loaded!', null);
23 |// Using a resolver on all routes or dataservice.ready in every controller
--------------------^
24 |// dataservice.ready().then(function(){
25 |// hideSplash();
Expected indentation of 12 characters at layout/shell.js :
22 | logger.success(config.appTitle + ' loaded!', null);
23 |// Using a resolver on all routes or dataservice.ready in every controller
24 |// dataservice.ready().then(function(){
--------------------^
25 |// hideSplash();
26 |// });
Expected indentation of 12 characters at layout/shell.js :
23 |// Using a resolver on all routes or dataservice.ready in every controller
24 |// dataservice.ready().then(function(){
25 |// hideSplash();
--------------------^
26 |// });
27 | hideSplash();
Expected indentation of 12 characters at layout/shell.js :
24 |// dataservice.ready().then(function(){
25 |// hideSplash();
26 |// });
--------------------^
27 | hideSplash();
28 | }
Expected indentation of 12 characters at widgets/ccWidgetHeader.js :
15 | // allow-collapse="true" </div>
16 | var directive = {
17 |// link: link,
--------------------^
18 | scope: {
19 | 'title': '@',
Expected indentation of 8 characters at widgets/ccWidgetHeader.js :
27 | return directive;
28 |
29 |// function link(scope, element, attrs) {
----------------^
30 |// attrs.$set('class', 'widget-head');
31 |// }
Expected indentation of 8 characters at widgets/ccWidgetHeader.js :
28 |
29 |// function link(scope, element, attrs) {
30 |// attrs.$set('class', 'widget-head');
----------------^
31 |// }
32 | }
Expected indentation of 8 characters at widgets/ccWidgetHeader.js :
29 |// function link(scope, element, attrs) {
30 |// attrs.$set('class', 'widget-head');
31 |// }
----------------^
32 | }
33 |})();
I use JSFormat within Sublime Text to format my JS Code. Doing that, fixed this issue for me.