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

Grunt issue on installation #4

Closed
nodkrot opened this issue Mar 18, 2014 · 3 comments
Closed

Grunt issue on installation #4

nodkrot opened this issue Mar 18, 2014 · 3 comments
Labels

Comments

@nodkrot
Copy link

nodkrot commented Mar 18, 2014

Just donwloaded, placed files in project directory and from there ran "npm install" and "grunt build". It failed on "grunt build". Here is the error:

----------------------------------------------------------------------->

Running "concat:js" (concat) task
File "build/js/framework7.js" created.

Running "less:build" (less) task
File build/css/framework7.css created.

Running "concat:css_build" (concat) task
File "build/css/framework7.css" created.

Running "jshint:gruntfile" (jshint) task

Gruntfile.js
line 87 col 112 Expected '{' and instead saw 'addIndent'.
line 93 col 26 Expected '{' and instead saw 'return'.
line 117 col 0 Identifier 'css_build' is not in camel case.
line 121 col 0 Identifier 'css_dist' is not in camel case.

build/js/framework7.js
line 30 col 47 Expected '{' and instead saw 'window'.
line 31 col 58 Expected '{' and instead saw 'window'.
line 32 col 55 Expected '{' and instead saw 'window'.
line 88 col 44 Expected '{' and instead saw 'window'.
line 95 col 32 Expected '{' and instead saw 'return'.
line 144 col 44 Expected '{' and instead saw 'return'.
line 166 col 71 Expected '{' and instead saw 'return'.
line 176 col 33 Expected '{' and instead saw 'return'.
line 194 col 108 Expected '{' and instead saw 'cancel'.
line 195 col 79 Expected '{' and instead saw 'cancel'.
line 211 col 38 Expected '{' and instead saw 'touchesDiff'.
line 216 col 56 Expected '{' and instead saw 'activePage'.
line 299 col 38 Expected '{' and instead saw 'app'.
line 388 col 47 Expected '{' and instead saw 'index'.
line 390 col 34 Expected '{' and instead saw 'app'.
line 438 col 50 Expected '{' and instead saw 'return'.
line 524 col 39 Expected '{' and instead saw 'return'.
line 525 col 35 Expected '{' and instead saw 'return'.
line 641 col 39 Expected '{' and instead saw 'return'.
line 699 col 52 Expected '{' and instead saw 'url'.
line 871 col 64 Expected '{' and instead saw 'app'.
line 872 col 56 Expected '{' and instead saw 'params'.
line 902 col 45 Expected '{' and instead saw 'callbackCancel'.
line 905 col 41 Expected '{' and instead saw 'callbackOk'.
line 950 col 34 Expected '{' and instead saw 'buttonsHTML'.
line 953 col 38 Expected '{' and instead saw 'buttonClass'.
line 954 col 37 Expected '{' and instead saw 'buttonClass'.
line 956 col 53 Expected '{' and instead saw 'buttonsHTML'.
line 972 col 59 Expected '{' and instead saw 'app'.
line 973 col 51 Expected '{' and instead saw 'buttonParams'.
line 983 col 60 Expected '{' and instead saw 'return'.
line 1038 col 40 Expected '{' and instead saw 'modalLeft'.
line 1039 col 63 Expected '{' and instead saw 'modalLeft'.
line 1040 col 50 Expected '{' and instead saw 'modalAngle'.
line 1041 col 53 Expected '{' and instead saw 'modalAngle'.
line 1074 col 37 Expected '{' and instead saw 'return'.
line 1091 col 41 Expected '{' and instead saw 'modal'.
line 1113 col 35 Expected '{' and instead saw 'modal'.
line 1114 col 34 Expected '{' and instead saw 'modal'.
line 1128 col 38 Expected '{' and instead saw 'return'.
line 1130 col 65 Expected '{' and instead saw 'return'.
line 1145 col 43 Expected '{' and instead saw 'panel'.
line 1150 col 39 Expected '{' and instead saw 'panel'.
line 1158 col 43 Expected '{' and instead saw 'return'.
line 1177 col 40 Expected '{' and instead saw 'return'.
line 1193 col 52 Expected '{' and instead saw 'return'.
line 1195 col 47 Expected '{' and instead saw 'return'.
line 1215 col 22 Expected '{' and instead saw 'message'.
line 1222 col 22 Expected '{' and instead saw 'message'.
line 1227 col 47 Expected '{' and instead saw 'return'.
line 1227 col 47 Too many errors. (60% scanned).

✖ 55 problems

Warning: Task "jshint:gruntfile" failed. Use --force to continue.

Aborted due to warnings.

Execution Time (2014-03-18 02:09:35 UTC)
loading tasks 417ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 38%
concat:js 12ms ▇ 1%
less:build 302ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 28%
jshint:gruntfile 355ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 33%
Total 1.1s

@nodkrot
Copy link
Author

nodkrot commented Mar 18, 2014

I turned off jshint and its fine now:

this.registerTask('build', 'Builds a development version of <%= pkg.name %>', [
'concat:js',
'less:build',
'concat:css_build',
// 'jshint',
'copy:build',
'jade:build',
]);

@nolimits4web
Copy link
Member

It seems like when you placed files to project directory you forgot to also place there ".jshintrc" file

@nolimits4web
Copy link
Member

I guess, i can close it for now

nolimits4web pushed a commit that referenced this issue Aug 16, 2017
@lock lock bot added the outdated label Jun 26, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants