Leiningen

1,349 views
1,236 views

Published on

Leiningen, lein, build, dev, clojure,function,fp

Published in: Business, Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,349
On SlideShare
0
From Embeds
0
Number of Embeds
48
Actions
Shares
0
Downloads
12
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Leiningen

  1. 1. "Leiningen!" he shouted. "Youre insane! Theyre not creatures you can fight--theyre an elemental--an act of God! Ten miles long, two miles wide--ants, nothing but ants! And every single one of them a fiend from hell..." -- from Leiningen Versus the Ants by Carl Stephenson@diego_pachecoSoftware Architect | Agile Coach
  2. 2. Leiningen A Clojure Build Tool
  3. 3. Leiningen
  4. 4. Leiningenhttp://clojars.org/
  5. 5. LeiningenHow to Install?$ wget http://github.com/technomancy/leiningen/raw/stable/bin/lein$ chmod +x lein$ lein self-install1. Dowload the file https://raw.github.com/technomancy/leiningen/stable/bin/lein.bat2. Save as lein.bat ,put in windows PATH.$ lein self-install
  6. 6. LeiningenMaven Repositories Central Clojure Clojure Snapshots Clojars
  7. 7. LeiningenSome lein commands: $ new $ deps $ compile $ test $ jar $ clean
  8. 8. Leiningen $ lein new test Created new project in: C:tmpleintest[project.clj]
  9. 9. Leiningen$ lein deps $ lein testCopying 1 file to C:tmpleintestlib Testing test.test.core FAIL in (replace-me) (core.clj:6)$ lein compile No tests have been written. expected: falseNo namespaces to :aot compile listed in actual: falseproject.clj. Ran 1 tests containing 1 assertions. 1 failures, 0 errors.$ lein jarCopying 1 file to C:tmpleintestlibCreated C:tmpleintest/test-1.0.0-SNAPSHOT.jar
  10. 10. LeiningenC:tmpleintestsrctest[core.clj] $ lein test Testing test.test.core Ran 1 tests containing 1 assertions. 0 failures, 0 errors. $ lein replC:tmpleintesttesttesttest REPL started; server listening on localhost port 36585 user=> (use ‘test.core)[core.clj] nil user=> (soma 25 5) 30 user=>
  11. 11. Leiningen$ lein plugin install <plugin> <version>
  12. 12. Leiningen
  13. 13. Leiningen
  14. 14. Leiningen
  15. 15. Leiningen
  16. 16. "Leiningen!" he shouted. "Youre insane! Theyre not creatures you can fight--theyre an elemental--an act of God! Ten miles long, two miles wide--ants, nothing but ants! And every single one of them a fiend from hell..." -- from Leiningen Versus the Ants by Carl Stephenson (lein thank :you)@diego_pachecoSoftware Architect | Agile Coach

×