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

Directory Structure #60

Closed
sudhakar opened this issue Jun 27, 2013 · 2 comments
Closed

Directory Structure #60

sudhakar opened this issue Jun 27, 2013 · 2 comments
Labels

Comments

@sudhakar
Copy link

I am wondering the reasoning behind having separate directories for build & compile. In brunch, it creates only _public directory which contains derived files based on which command you use because you would rarely use both development and production at the same time.

Also can karma-unit.tpl.js be moved out of karma subdirectory to toplevel?

If you are ok with it, I can probably raise a PR..

@joshdmiller
Copy link
Member

The reason for the separate build and compile directories is that the build contains a lot of temporary files that are needed during the compile. If we were to push all the compiled files into the same directory, it would be difficult for the developer to know which files to deploy to his server. As it exists now, the build directory is just a convenience - it does the bare minimum to keep the app running in a dev cycle; but the compile directory is entirely self-contained and ready for production. So it's true that you wouldn't do development and production at the same time, but one builds on the other; you can't compile without first building.

As for the karma config, I don't really have a preference. It is in a subdirectory right now because I plan to add a separate config for E2E tests and when there are multiple related files, I like to put them in a subdirectory. But if you can rally support behind the idea of putting them in the root, then that would be fine. Whatever the community wants here. :-)

@sudhakar
Copy link
Author

@joshdmiller Got it. That explains why we have bin and build directory. In my case, I dont deploy bin to the server, instead I pull from projects git repo, do npm install to update the dependencies.

Yep, it just a matter of taste and I am equally happy with having separate directories as well :)

Cheers for your great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants