Skip to content

Make router.js optional; add router blueprint (fixes issue #55)#56

Merged
joostdevries merged 3 commits intoember-cli:masterfrom
Gaurav0:fix_existing_twiddles_wo_router
Jul 16, 2015
Merged

Make router.js optional; add router blueprint (fixes issue #55)#56
joostdevries merged 3 commits intoember-cli:masterfrom
Gaurav0:fix_existing_twiddles_wo_router

Conversation

@Gaurav0
Copy link
Copy Markdown
Contributor

@Gaurav0 Gaurav0 commented Jul 15, 2015

This allows existing Ember Twiddle gists without a router.js to continue to work by making router.js optional. Users can now add a router through a blueprint. This also lets them conveniently reset the router by deleting and adding a new one.

Fixes issue #55

Comment thread app/services/ember-cli.js Outdated
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.

warn or error? Will support for routerless go away, if so when will it go away

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.

@joostdevries @alexspeller Care to weigh in?

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.

Actually, I have a better idea. If we added a blueprint, we could make router.js permanently optional.

@Gaurav0 Gaurav0 changed the title "Fix" existing twiddles without a router.js (issue #55) Make router.js optional; add router blueprint (fixes issue #55) Jul 16, 2015
@joostdevries
Copy link
Copy Markdown
Member

@Gaurav0 thanks! Ultimately I think we can refactor this to be a bit more abstract+concise:

  • all blueprints should come from lib/blueprints.
  • some blueprints should be marked as required. if they are not present in the filetree, we'll add them at build time.

joostdevries pushed a commit that referenced this pull request Jul 16, 2015
Make router.js optional; add router blueprint (fixes issue #55)
@joostdevries joostdevries merged commit 6931eb2 into ember-cli:master Jul 16, 2015
@Gaurav0 Gaurav0 deleted the fix_existing_twiddles_wo_router branch March 21, 2016 13:47
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