-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Directory Structure #98
Comments
I like it, just can't swallow pushing |
All for building outside www/ |
I'm fine with it, but I think having the img/ folder outside of the working directory may be confusing. |
What about components & pages directory? For example if I have:
|
What about just a directives directory for components and directives? Components are technically directives as well, and I don't think they're so different that we need separate directories for them, but maybe that would be confusing. I'm fine with Everything else LGTM, having app outside of www brings the Cordova build size down (no duplication of source files) and I think the template path issue is no longer relevant because of angular/angular@28860d3 👍 |
@tlancina I'd prefer components then, since a directive is kind of a "component" and that concept is the one most people are using in and out of angular... |
Yeah I agree with @brandyscarney as well, having to map your asset paths in your head to where your build is going to be might be confusing. I think we can easily add a gulp task/CLI config glob for paths to copy into www. |
@mlynch I believe it's the other way around, components are directives, but directives are not components. I was also thinking coming from ng1 directives is a familiar concept. |
Yes, "technically" but no one uses directives except Angular. Directive directives could still be considered "components" that enhance elements. |
@tlancina Could we copy the directory over and have it ignored by git so they can still put assets in their working directory? |
Really the images stuff if what tripped us up before and why it is the way it is now. But if you look at what we've done with the conf app already is that the images are already outside of the So all things considered, I think I like having static assets like images managed outside of the Also, yeah I agree we can go with just @astec Are you saying the problem would be that there could be multiple |
@brandyscarney good point, what if we had a root level
|
Yeah I get the @adamdbradley I see your point about paths confusion, I was thinking it would be easier to have |
WWECD (what would ember cli do) |
|
Is this good to close now? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the Ionic Conference App, please create a new issue and ensure the template is fully filled out. |
Thinking about not placing the source module and sass files within
www
. Once we get offline template compiling, which should be landing soon, even source HTML files are compiled. So all output that gets transpiled/compiled goes inbundle
(or whatever), and normal static files like images go inwww/img
or whatever they want. Thoughts?@mlynch @tlancina @brandyscarney @mhartington
Resources:
https://github.com/AngularClass/angular2-webpack-starter
https://github.com/DanWahlin/Angular2-JumpStart
https://github.com/mgechev/angular2-seed
https://github.com/valor-software/ng2-bootstrap
The text was updated successfully, but these errors were encountered: