I'm pretty sure its just user error and the new learning curve using Yeomans to create the subtheme. I've installed the subtheme, selected grunt as an extra in the build.
Once the subtheme was created I ran 'npm install' within the subdirectory to install grunt dependencies, but cannot get grunt to run.

When I run 'grunt watch' within the subdirectory I get this error

Gruntfile.js:47
imagesDir: paths.img . '-min',
^^^^^^
Loading "Gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected string
Warning: Task "watch" not found. Use --force to continue.

Any help or guidance here would be greatly appreciated. Aurora has been our goto base theme for over a year and this is the first time we have been stuck in the mud. Thanks

Comments

iamcarrico’s picture

There were a few changes in the Gruntfile and Gulpfile when we moved over to Yeoman--- and I just have not had the time to debug both of them 110%, and make sure they work in all instances. There is an issue open over in one Yeoman generator, and I will get to correcting it when I can.

https://github.com/frontend-united/generator-drupal-theme/issues/5

Until then, I would bet here there is just a missing comma in the line before.

iamcarrico’s picture

I take that back, replace line 47 with this:

imagesDir: paths.img + '-min',

Silly me--- I will update the generator.

iamcarrico’s picture

Status: Active » Fixed
nimbletoad’s picture

Thanks Ian,

Thank got me past that error. Now I've got

Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'compass-options'

Tried reinstalling compass, deleted the node_modules folder and reran npm install but same error

Not sure if its a bug or my server got jacked by all the reinstalling today. Any guidance would be greatly appreciated.

nimbletoad’s picture

After running

npm install compass-options

I got grunt watch to work! I finally drink my beer. Compass-options was not included in the list of required node_modules.

iamcarrico’s picture

Awesome--- you will want to add this line to your package.json as well:

"compass-options": "^0.1.1",

If you find any bugs or issues on the Gruntfile--- please submit them to the generic issue queue--- I will make sure any fixes make it into both generators: https://github.com/frontend-united/generator-drupal-theme/issues

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.