Question

How to create an 'app' project with Leiningen? And a 'library' project?

Answer

The general syntax is
lein new $TEMPLATE_NAME $PROJECT_NAME

The template for apps is 'app', so to create an 'app' project...
lein new app project-name

The template for libraries is 'default', so...
lein new default project-name

Omitting the template name will use this 'default' template, so this is equivalent to...
lein new project-name

To see the built-in templates...
lein help new

https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md#creating-a-project

Learn

Author

xavi

Reviews
Last
next

Students 0