leiningen
Post on 10-Nov-2014
1.467 Views
Preview:
DESCRIPTION
TRANSCRIPT
@diego_pachecoSoftware Architect | Agile Coach
"Leiningen!" he shouted. "You're insane! They're not creatures you can fight--they're 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
Leiningen
A Clojure Build Tool
Leiningen
Leiningen
How to Install?
$ wget http://github.com/technomancy/leiningen/raw/stable/bin/lein
$ chmod +x lein
$ lein self-install
1. Dowload the file https://raw.github.com/technomancy/leiningen/stable/bin/lein.bat2. Save as lein.bat ,put in windows PATH.
$ lein self-install
Leiningen
Maven Repositories
Central
Clojure
Clojure Snapshots
Clojars
Leiningen
Some lein commands:
$ new
$ deps
$ compile
$ test
$ jar
$ clean
Leiningen
$ lein new testCreated new project in: C:\tmp\lein\test
[project.clj]
Leiningen
$ lein depsCopying 1 file to C:\tmp\lein\test\lib
$ lein compileNo namespaces to :aot compile listed in
project.clj.
$ lein jarCopying 1 file to C:\tmp\lein\test\lib
Created C:\tmp\lein\test/test-1.0.0-
SNAPSHOT.jar
$ lein testTesting test.test.core
FAIL in (replace-me) (core.clj:6)
No tests have been written.
expected: false
actual: false
Ran 1 tests containing 1 assertions.
1 failures, 0 errors.
Leiningen
[core.clj]
[core.clj]
$ lein testTesting test.test.coreRan 1 tests containing 1 assertions.0 failures, 0 errors.
$ lein replREPL started; server listening on localhost port 36585user=> (use ‘test.core)niluser=> (soma 25 5)30user=>
C:\tmp\lein\test\src\test
C:\tmp\lein\test\test\test\test
Leiningen
$ lein plugin install <plugin> <version>
Leiningen
Leiningen
Leiningen
Leiningen
@diego_pachecoSoftware Architect | Agile Coach
"Leiningen!" he shouted. "You're insane! They're not creatures you can fight--they're 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)
top related