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

Provide mechanism to remove from production build #31

Closed
chrislopresto opened this issue Apr 15, 2016 · 7 comments
Closed

Provide mechanism to remove from production build #31

chrislopresto opened this issue Apr 15, 2016 · 7 comments

Comments

@chrislopresto
Copy link
Owner

chrislopresto commented Apr 15, 2016

Document how to use https://github.com/kellyselden/ember-cli-funnel to exclude Freestyle-related content from production builds.

Rather than carry this as an explicit dependency, let's just document how to go about it. This will avoid conflicting with other unrelated use of ember-cli-funnel. It will also allow people to put some Freestyle guides/components in production while excluding others... will avoid the need to track/infer what portions of the app are using freestyle components... etc.

@GCheung55
Copy link

Nice. I was just thinking about this. My team might not want the style guide out in prod.

@kellyselden
Copy link

This might be easy using https://github.com/kellyselden/ember-cli-funnel

@chrislopresto
Copy link
Owner Author

Nice!

@josemarluedke
Copy link

Would love to get this done automatically. In the mean time, can a documentation be provided to accomplish this?

@jamesarosen
Copy link

jamesarosen commented Nov 25, 2016

My use-case for this (or something like it) is to add freestyle documentation to an addon. That is, in development mode my library becomes a documentation-only app. When included in another app, my addon's documentation should be excluded.

Perhaps the right strategy for my case is #32: move the freestyle docs into tests/dummy.

@oligriffiths
Copy link

@chrislopresto Yeah, we need a way of removing freestyle from production, this should be dev only by default. Any update on this?

@simonihmig
Copy link
Contributor

Here is my attempt: #98

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

7 participants