tarlepp / angular-sailsjs-boilerplate

'Boilerplate' for AngularJS + Sails.js
MIT License
307 stars 87 forks source link

Start error #112

Closed jjgonver closed 8 years ago

jjgonver commented 8 years ago

I'm stating with this framework and looks great. I just configure the backend and start ok, but when I start the frontend appear the next message: Thanks

C:\Users\juanjo\app\frontend>gulp serve
[20:30:26] Using gulpfile ~\app\frontend\gulpfile.js
[20:30:26] Starting 'statics'...
[20:30:26] Finished 'statics' after 4.99 ms
[20:30:26] Starting 'jshint'...
[20:30:26] Starting 'clean-css'...
[20:30:26] Starting 'templates'...
[20:30:26] Server started at http://:::3001

gulpfile.js
  line 281  col 14  A constructor name should start with an uppercase letter.

  ‼  1 warning

[20:30:26] Finished 'clean-css' after 360 ms
[20:30:26] Starting 'styles'...
[20:30:27] Finished 'styles' after 225 ms
[20:30:27] Starting 'csslint'...
[20:30:27] Starting 'scsslint'...
[20:30:27]

csslint: There are 5 problems in C:\Users\juanjo\app\frontend\.tmp\css\app.css.

app.css
1: warning at line 77, col 1
Unqualified attribute selectors are known to be slow.
[ng\:cloak],

app.css
2: warning at line 78, col 1
Unqualified attribute selectors are known to be slow.
[ng-cloak],

app.css
3: warning at line 79, col 1
Unqualified attribute selectors are known to be slow.
[data-ng-cloak],

app.css
4: warning at line 80, col 1
Unqualified attribute selectors are known to be slow.
[x-ng-cloak],

app.css
5: warning at line 83, col 3
Use of !important
  display: none !important; }
markmssd commented 8 years ago

Those are not errors, just warnings caused by csslint and jslint. The app will still work perfectly.

This css is however required, as per AngularJS's documentation: https://docs.angularjs.org/api/ng/directive/ngCloak

jjgonver commented 8 years ago

I understand that there is no way to remove this warning, isn't it? Thanks

tarlepp commented 8 years ago

Sure there is;

1) Fix those scss files 2) Remove/disable csslinter from gulpfile