Skip to content

add component (both js and hbs) Add File choice#148

Merged
Gaurav0 merged 4 commits intoember-cli:masterfrom
kagemusha:master
Aug 15, 2015
Merged

add component (both js and hbs) Add File choice#148
Gaurav0 merged 4 commits intoember-cli:masterfrom
kagemusha:master

Conversation

@kagemusha
Copy link
Copy Markdown
Contributor

Takes care of issue #35.

One difference from discussions there is that if user enters file extension, get snarky error msg instead of stripping it off :-), but this can be changed if the latter felt better.

Tests to come.

Comment thread app/gist/controller.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LOL

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might want to make it slightly kinder 😈

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rwjblue @joostdevries Do we want an error message at all or do we want to automatically strip the extension?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Gaurav0 @rwjblue @joostdevries imagine most of the time people will want to do what stripping accomplishes, so despite my affection for the snarky msg, gonna strip the extension if no objections

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good.

@Gaurav0
Copy link
Copy Markdown
Contributor

Gaurav0 commented Aug 11, 2015

You have a jshint error, and you have some conflicts.

@Gaurav0
Copy link
Copy Markdown
Contributor

Gaurav0 commented Aug 14, 2015

@kagemusha This looks great! Can you do the following:

  1. When adding a component, it should open the js file in column 1 and the template in column 2
  2. Place the two legacy component options (for individual hbs and js) in a subdropdown (subflyout) menu.

@kagemusha
Copy link
Copy Markdown
Contributor Author

@Gaurav0 added. pls take a look.

@Gaurav0
Copy link
Copy Markdown
Contributor

Gaurav0 commented Aug 15, 2015

👍

Gaurav0 added a commit that referenced this pull request Aug 15, 2015
add component (both js and hbs) Add File choice
@Gaurav0 Gaurav0 merged commit 85f7861 into ember-cli:master Aug 15, 2015
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

Successfully merging this pull request may close these issues.

3 participants