-
Notifications
You must be signed in to change notification settings - Fork 65
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
Move components up a level? #13
Comments
I think you absolutely right (i noticed it the other day but forgot), I also think we should drop components directory. |
Agreed 👍 |
Can we also move example usage into the widget's |
@rishson I don't think that the examples should not be in the test directory, personally I think they should live along side the widgets. Such |
So were agreed on:
|
I'm in favor of This could also simplify builds - if we want to build a distribution for consumption as a dependency, the consumer just wants the widgets, not tests or examples. Compile and build everything in Basically, everything that should be provided to a dependency consumer should go in
|
I understand where you're coming from, but I would even prefer to have the tests in src (like jest), because then everything related is together. Don't forget just because it is src doesn't mean we'll publish it (we won't) so consumer of the package won't receive the examples. |
@agubler would this approach just be for @dojo/widgets? I guess I would argue that examples and test probably should be there for someone learning Dojo 2, but not for a production-ready distribution? Regardless, I think this approach would get cumbersome for something like @dojo/core, but I can see the logic for widgets because the idea is to think of each widget as independent (so each widget could live in a separate repo, but we don't want the overhead of ever widget being in a separate repo). The only potential negative I see with this is that it will make the Intern config more complex (with regards to how you describe paths for testing and what to exclude from testing, but not overly arduous. |
Now that widgets have been split from widget-core, I think we should move the contents of /components up a level into src. Or do we really want things to be @dojo/widgets/components/createFoo ?
The text was updated successfully, but these errors were encountered: