Skip to content

WIP | Generate component in-place - #75

Closed
locks wants to merge 1 commit into
masterfrom
inline-component
Closed

locks wants to merge 1 commit into
masterfrom
inline-component

Conversation

@locks

@locks locks commented Jun 19, 2017 •

Copy link
Copy Markdown
Collaborator

This addon should likely generate the component files in-place instead of the current setup.

This would address the problem of having to have logic to strip the assets from production builds, as well as having a flag to actually ship them to production. At the moment, doing a -prod build of an Ember CLI "hello world" results in an empty screen due to an error.

For the classic structure, this means inlining assets as ember g component would only get rid of the template and the JavaScript file. We could have something like a command for the addon to remove itself, but the idea is to Use The Platform™.
In Module Unification-land we'll have a slightly better time as we can have colocated hbs, JS, and CSS, meaning the user can just remove the folder.

Generating the component has the added benefit of the user having some code to explore.

Task order:

  • Inline image
    • manually add data-uri
    • broccoli pre-processor?
  • inline CSS
  • blueprints
    • classic
    • MU (colocated CSS vs inline?)

@mixonic

mixonic commented Jun 19, 2017

Copy link
Copy Markdown
Member

Hm, seems unexpected? Does the image cause problems?

😬 I'll need to update https://madhatted.com/2017/6/16/building-a-progressive-web-app-with-ember if this lands. But that is obviously not a very good reason to block.

@locks locks changed the title WIP WIP | Generate component in-place Jun 19, 2017
@locks

locks commented Jun 19, 2017

Copy link
Copy Markdown
Collaborator Author

@mixonic I accidentally submitted the PR before writing the description, updated

@Turbo87

Turbo87 commented Feb 16, 2019

Copy link
Copy Markdown
Member

closing due to inactivity

@Turbo87 Turbo87 closed this Feb 16, 2019
@Turbo87
Turbo87 deleted the inline-component branch February 16, 2019 09:24
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