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

Could someone please explain the structure of the generated code? #180

Open
noorvir opened this issue Mar 21, 2021 · 1 comment
Open

Could someone please explain the structure of the generated code? #180

noorvir opened this issue Mar 21, 2021 · 1 comment

Comments

@noorvir
Copy link

noorvir commented Mar 21, 2021

As a newbie, I don't understand what I'm supposed to do with folders like clj, cljc and cljs. Most tutorials and docs online don't tell you how to structure your project. I think knowing why the project is structured the way it is would be a valuable learning resource to starters like me.

@yogthos
Copy link
Member

yogthos commented Mar 21, 2021

Each folder designates the type of source files:

  • clj folder contains source files that are compiled to JVM bytecode and run server-side
  • cljc folder contains source files that cross-compile to both JVM bytecode and Js code that runs on the client
  • cljs folder contains source files that compile to Js and runs client-side

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

2 participants