koolth / generator-bourbon-neat

Yeoman generator for a website using thoughtbot's Bourbon Neat. Options for Normalize and Modernizr!
MIT License
34 stars 5 forks source link

grunt build not working #3

Closed mortscode closed 9 years ago

mortscode commented 10 years ago

First of all, thank you for making this generator. Mega smart and useful for me.

Sass & watch are working great for 'grunt serve' and I build my entire site in an hour last night. Unreal.

When i run 'grunt build' my site isn't building. The "dist" folder is created with an "images" folder in it, but nothing else is created. I'm also getting:

'Warning: Task "uglify" not found. Use --force to continue.'

I just re-installed the generator with yo, changed nothing, and just ran 'grunt build' and got the same errors.

help.

drpuff commented 10 years ago

Hi Scott, Thanks for trying out the generator, and more importantly, submitting an issue. We'll try and have a look properly at this today, but we it may not be until early next week as we're taking part in a 3-day 'hackathon".

In the meantime, I've taken a quick look and it seems we missed out including 'uglify' in the package.json file. Try adding "grunt-contrib-uglify": "*", as a dependency, and re-running npm install.

UPDATE: Also comment out or remove the 'uglify' task in the grunt.registerTask('build' section of the Gruntfile.js file (the usemin task should take care of this).

Hope that helps a little for the time being. Promise we'll address this as soon as we can.

John

SeeThruHead commented 10 years ago

I think i'm also experiencing some issues similar to this. Everything works create in grunt serve but when i try to run grunt i get jshint errors and it stops. I'm really new to web development and just started trying to figure out using grunt and yeoman so maybe I'm overlooking something but a clean install wont build properly for me.