Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp proxy #3

Open
serra82 opened this issue Feb 15, 2016 · 0 comments
Open

gulp proxy #3

serra82 opened this issue Feb 15, 2016 · 0 comments

Comments

@serra82
Copy link

serra82 commented Feb 15, 2016

Hi,
I would use proxy feature of gulp, but I have few problems as reported here:
Swiip/generator-gulp-angular#442
I think is a problem of generator-gulp-angular version: "0.11.0".

So I updated the generator-gulp-angular with yo at version 1.0.2, but now with gulp serve I have a white browser screen and 18 errors:

[18:05:58] Using gulpfile ~/dash/sb-admin-2/gulpfile.js
[18:05:58] Starting 'markups'...
[18:05:58] Starting 'scripts'...
[18:05:59] Starting 'styles'...
[18:06:00] gulp-inject 7 files into index.scss.
[18:06:02] Finished 'styles' after 2.81 s
[18:06:02]
/home/serra82/dash/sb-admin-2/src/app/app.js
3:1 error You should use the function syntax for DI angular/di
15:5 error State "sbAdmin2.authenticated.morris" should use controllerAs syntax angular/controller-as-route
15:5 error State "sbAdmin2.authenticated.flot" should use controllerAs syntax angular/controller-as-route
15:5 error State "sbAdmin2.authenticated.dashboard" should use controllerAs syntax angular/controller-as-route

/home/serra82/dash/sb-admin-2/src/app/dashboard/dashboard-controller.js
4:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
18:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
78:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as

/home/serra82/dash/sb-admin-2/src/app/flot/flot-controller.js
39:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
48:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
1036:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
1093:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
1149:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as

/home/serra82/dash/sb-admin-2/src/app/morris/morris.js
3:1 error The MorrisCtrl controller should follow this pattern: /[A-Z].*Controller$/ angular/controller-name
3:1 error You should use the function syntax for DI angular/di
4:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
64:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
78:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
115:5 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as

✖ 18 problems (18 errors, 0 warnings)

[18:06:02] all files 141.5 kB
[18:06:02] Finished 'scripts' after 3.39 s
[18:06:02] Starting 'inject'...
[18:06:02] gulp-inject 1 files into index.html.
[18:06:02] Finished 'markups' after 3.51 s
[18:06:02] gulp-inject 14 files into index.html.
[18:06:02] Finished 'inject' after 199 ms
[18:06:02] Starting 'watch'...
[18:06:02] Finished 'watch' after 81 ms
[18:06:02] Starting 'serve'...
[18:06:02] Finished 'serve' after 141 ms
[BS] [BrowserSync SPA] Running...
[BS] Access URLs:


   Local: http://localhost:3000/
External: http://192.168.199.130:3000/

      UI: http://localhost:3001

UI External: http://192.168.199.130:3001


[BS] Serving files from: .tmp/serve
[BS] Serving files from: src

any idea?
thank you
Andrea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant