Skip to content

fix(generate): fix style and template url references #341

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

Merged
merged 1 commit into from
Mar 23, 2016

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Mar 23, 2016

Dynamic paths for components were incorrectly generating paths for templates and styles
Fixes #340

@@ -13,7 +14,9 @@ module.exports = {

locals: function(options) {
return {
dynamicPath: this.dynamicPath.dir
dynamicPath: this.dynamicPath.dir === path.sep
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sounds like a path.resolve(this.dynamicPath.dir) or something like that, no?

@hansl
Copy link
Contributor

hansl commented Mar 23, 2016

Please add a test for this.

@Brocco Brocco force-pushed the dynamic-path-ref branch 2 times, most recently from 78e7374 to fbe6cba Compare March 23, 2016 18:55
@@ -1,5 +1,6 @@
var stringUtils = require('ember-cli/lib/utilities/string');
var dynamicPathParser = require('../../utilities/dynamic-path-parser');
var path = require('path');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: not needed anymore.

@hansl
Copy link
Contributor

hansl commented Mar 23, 2016

2 nits, but LGTM. Stamping this. Good work! :)

Dynamic paths for components were incorrectly generating paths for templates and styles
Fixes angular#340
@Brocco Brocco force-pushed the dynamic-path-ref branch from fbe6cba to 5ee4f2b Compare March 23, 2016 20:34
@Brocco
Copy link
Contributor Author

Brocco commented Mar 23, 2016

Thanks @hansl nits have been handled/updated

@hansl hansl merged commit 5ee4f2b into angular:master Mar 23, 2016
@Brocco Brocco deleted the dynamic-path-ref branch March 24, 2016 00:24
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(generate/component): generated templateUrl and styleUrls paths are broken
2 participants