KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.84k stars 154 forks source link

Elixir project creation #22

Open KronicDeth opened 10 years ago

KronicDeth commented 10 years ago

Allow the creation of Elixir projects from the New Project menu. This will include the use of mix to create the new project template. Feature request by @Claudiojlf in https://github.com/KronicDeth/intellij-elixir/issues/6#issuecomment-59466280. Requested by @prodev42 in #77 and @andreacfm on stackoverflow.com

References

Claudiojlf commented 10 years ago

Muchas Gracias por tu respuesta KronicDeth , pido disculpas si quizá me excedí en mi pedido, soy nuevo aquí en GitHub, y también con respecto a Elixir. Quizá no me di cuenta que esto es un proyecto nuevo y que recién empieza, y yo entre pidiendo demasiado. Disculpas nuevamente

KronicDeth commented 9 years ago

From looking at @ignatov's work on intellij-erlang, I think New Project uses moduleTypes for the list of allowed languages. Further research is needed.

zyuyou commented 9 years ago

hello, I have rewrite the sdkType part which you have implemented, and the new one is more like intellij-erlang. new project

is very simple, but it will create the source-dir **lib** instead of **src**. ![mix-importwizard-1](https://cloud.githubusercontent.com/assets/1913492/8614277/af5abfea-271a-11e5-8026-817c519add15.png) ![mix-importwizard-2](https://cloud.githubusercontent.com/assets/1913492/8614278/af61e11c-271a-11e5-9887-fd6859733658.png) ![projectdetector](https://cloud.githubusercontent.com/assets/1913492/8614324/2a4ffd78-271b-11e5-8449-58956291e264.png) and I also add importWizard using **mix** , new ProjectDetector and mix runconfig. in the end, I think the lask task: "Allow setting of mix new options using mix from Setup SDK." would more like the android-plugin's , and I will working on it. ![mix new feature](https://cloud.githubusercontent.com/assets/1913492/8614418/0bc35f02-271c-11e5-839a-3ef9bc237f62.png)
KronicDeth commented 9 years ago

Very nice @zyuyou, are you planning on opening a pull request now or waiting until you finish the "Allow setting of mix new options using mix from Setup SDK"? Being able to run mix compile and mix clean is already a huge feature. More PRs that are tightly focused are good because (1) it's easier for me to code review them; (2) it's easier to describe them in the changelog; and (3) if you have more PRs you'll get more mentions of your github handle in the changelog for more open source glory. :grin:

zyuyou commented 9 years ago

yes, and I will take time to do that,because it need some test-case and be tested in other idea products. one more thing is what are idea.xml, intellij-elixir.xml, intellij_elixir.xml , module_intellij-elixir.xml the four files for? and how to use it? Although, I known that some for get dev-env and some for package the product-plugin.

KronicDeth commented 9 years ago

The *.xml files are used to run the build on travis-ci.org using ant because the run configuration in the IDEA project, such as the org.elixir_lang test run configuration cannot be run on travis-ci.org.

As far as I was been able to research those run configurations would only work on a Team City server and there was no easily accessible, free for open source, Team City service when I setup the build. Also, I use TravisCI at work, so I understood how to set it up.

zyuyou commented 9 years ago

ok, thanks!

KronicDeth commented 9 years ago

This will be resolved by partially by #167