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 bower sets incorrect 'app' prefix in require.js paths-object #954

Closed
0xgeert opened this issue Feb 26, 2013 · 3 comments
Closed

grunt bower sets incorrect 'app' prefix in require.js paths-object #954

0xgeert opened this issue Feb 26, 2013 · 3 comments

Comments

@0xgeert
Copy link

0xgeert commented Feb 26, 2013

Result of running said command is something like:

paths: {
jquery: 'app/components/jquery/jquery',
bootstrap: 'vendor/bootstrap',
underscore: 'app/components/underscore',
'es5-shim': 'app/components/es5-shim',
...
}
Which results in 404's.

The following works.
paths: {
jquery: '../components/jquery/jquery',
bootstrap: 'vendor/bootstrap',
underscore: '../components/underscore/underscore',
....
},

Perhaps due to the version of yeoman I'm using? It's as if main.js is supposed to be in the root dir of the project, while in my case it's sitting in /app/scripts

on a related note:
Modernizr, requirejs are still being added to the paths. This is related to #460 which should (as per comment) be resolved in yeoman 1.0 (I realize we're not there completely)

@sindresorhus
Copy link
Member

Yes, this is related to yeoman/grunt-bower-requirejs#6

I'm going to add an exclude option.

@sindresorhus
Copy link
Member

Exclude option fixed in yeoman/generator-webapp@e197863

See above linked issue for the other bug.

@kevva
Copy link
Member

kevva commented Mar 24, 2013

Fixed in yeoman/grunt-bower-requirejs@937754a.

@kevva kevva closed this as completed Mar 24, 2013
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

3 participants