Skip to content

Commit

Permalink
Bump the version.
Browse files Browse the repository at this point in the history
  • Loading branch information
emezeske committed Jul 6, 2012
1 parent 3a5570f commit 20783c1
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 36 deletions.
40 changes: 20 additions & 20 deletions README.md
Expand Up @@ -7,12 +7,12 @@ to install and allows you to configure the ClojureScript compiler from within yo

Beyond basic compiler support, lein-cljsbuild can optionally help with a few other things:

* [Launching REPLs for interactive development] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/REPL.md)
* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/TESTING.md)
* [Sharing code between Clojure and ClojureScript] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/CROSSOVERS.md)
* [Launching REPLs for interactive development] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/REPL.md)
* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/TESTING.md)
* [Sharing code between Clojure and ClojureScript] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/CROSSOVERS.md)

The latest version of lein-cljsbuild is `0.2.4`.
[See the release notes here.](https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/RELEASE-NOTES.md)
The latest version of lein-cljsbuild is `0.2.5`.
[See the release notes here.](https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/RELEASE-NOTES.md)

## Requirements

Expand All @@ -28,7 +28,7 @@ file in the `:plugins` section:
```clj
; Using Leiningen 1.7.0 or newer:
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]])
:plugins [[lein-cljsbuild "0.2.5"]])
```

And then running the following command to download it:
Expand All @@ -38,15 +38,15 @@ And then running the following command to download it:
## Just Give Me a Damned Example Already!

See the
[example-projects] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects)
[example-projects] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects)
directory for a couple of simple examples of how to use lein-cljsbuild. The
[simple project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/simple)
[simple project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/simple)
shows a dead-simple "compile only" configuration, which is a good place to start. The
[advanced project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/advanced)
[advanced project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/advanced)
contains examples of how to use the extended features of the plugin.

Also, see the
[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/sample.project.clj)
[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/sample.project.clj)
file for an exhaustive list of all options supported by lein-cljsbuild.

## Basic Configuration
Expand All @@ -56,7 +56,7 @@ of your `project.clj` file. A simple project might look like this:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:builds [{
; The path to the top-level ClojureScript source directory:
Expand All @@ -70,7 +70,7 @@ of your `project.clj` file. A simple project might look like this:
```

For an exhaustive list of the configuration options supported by lein-cljsbuild, see the
[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/sample.project.clj)
[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/sample.project.clj)
file.

## Basic Usage
Expand Down Expand Up @@ -118,7 +118,7 @@ JAR file.
```

If you are using the
[crossovers] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/CROSSOVERS.md)
[crossovers] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/CROSSOVERS.md)
feature, and want the `:crossover-path` included in the JAR file, add this entry to your
top-level `:cljsbuild` configuration:

Expand All @@ -134,7 +134,7 @@ and will build all of them in parallel:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:builds [
{:source-path "src-cljs-main"
Expand All @@ -152,7 +152,7 @@ only that one:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:builds [
{:source-path "src-cljs-main"
Expand All @@ -169,7 +169,7 @@ them as a map instead of a vector:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:builds {
:main
Expand All @@ -185,27 +185,27 @@ You can also build multiple configurations at once:
$ lein cljsbuild auto main other

See the
[example-projects/advanced] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/advanced)
[example-projects/advanced] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/advanced)
directory for a working example of a project that uses this feature.

## REPL Support

Lein-cljsbuild has built-in support for launching ClojureScript REPLs in a variety
of ways. See the
[REPL documentation] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/REPL.md)
[REPL documentation] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/REPL.md)
for more details.

## Testing Support

Lein-cljsbuild has built-in support for running external ClojureScript test processes. See the
[testing documentation] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/TESTING.md)
[testing documentation] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/TESTING.md)
for more details.

## Sharing Code Between Clojure and ClojureScript

Sharing code with lein-cljsbuild is accomplished via the configuration
of "crossovers". See the
[crossovers documentation] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/doc/CROSSOVERS.md)
[crossovers documentation] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/doc/CROSSOVERS.md)
for more details.

## License
Expand Down
2 changes: 1 addition & 1 deletion doc/CROSSOVERS.md
Expand Up @@ -35,7 +35,7 @@ And your `project.clj` file looks like this:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:source-path "src-clj"
:cljsbuild {
; Each entry in the :crossovers vector describes a Clojure namespace
Expand Down
2 changes: 2 additions & 0 deletions doc/RELEASE-NOTES.md
@@ -1,5 +1,7 @@
# Release Notes for lein-cljsbuild

## 0.2.5

## 0.2.4

1. Removed support for `:warn-on-undeclared`, because the compiler itself now supports a `:warnings` option. Use that instead.
Expand Down
4 changes: 2 additions & 2 deletions doc/REPL.md
Expand Up @@ -60,7 +60,7 @@ between them. To configure a launch preset, add an entry to the `:repl-launch-c

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:repl-listen-port 9000
:repl-launch-commands
Expand Down Expand Up @@ -99,7 +99,7 @@ treated as an option map. Currently, the only supported options are
```

For more ideas on how to use `repl-launch`, take a look at the
[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/advanced)
[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/advanced)
It has several examples of useful launch commands, with descriptions in its README.
Note that, in particular, the possibilities with
[PhantomJS] (http://www.phantomjs.org)
Expand Down
8 changes: 4 additions & 4 deletions doc/TESTING.md
Expand Up @@ -7,7 +7,7 @@ test:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:test-commands
{"my-test" ["phantomjs" "phantom/unit-test.js" "..."]})
Expand Down Expand Up @@ -38,18 +38,18 @@ browser to do, except it does not have a GUI. PhantomJS can be automated via Ja
and thus is convenient to use for running automated tests.

The
[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/advanced)
[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/advanced)
contains an example of how to use PhantomJS for running ClojureScript tests. There are several
components that come together to make this work:

1. A `:builds` entry dedicated to the test code in the `test-cljs` directory. This compiles
the unit tests into JavaScript (so that it they can be run by PhantomJS).

2. A
[static HTML page] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/advanced/resources/private/html/unit-test.html)
[static HTML page] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/advanced/resources/private/html/unit-test.html)
with a `<script>` tag that will pull in the compiled unit test code when the page is loaded.

3. A `:test-commands` entry that runs PhantomJS, passing it
[a simple script] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.4/example-projects/advanced/phantom/unit-test.js)
[a simple script] (https://github.com/emezeske/lein-cljsbuild/blob/0.2.5/example-projects/advanced/phantom/unit-test.js)
. This script directs PhantomJS to load the static HTML page, and once it's loaded,
to call the ClojureScript unit test entry point.
4 changes: 2 additions & 2 deletions example-projects/advanced/project.clj
@@ -1,11 +1,11 @@
(defproject cljsbuild-example-advanced "0.2.4"
(defproject cljsbuild-example-advanced "0.2.5"
:description "An advanced example of how to use lein-cljsbuild"
:source-path "src-clj"
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.0.4"]
[hiccup "1.0.0"]]
:dev-dependencies [[lein-ring "0.7.0"]]
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
; Enable the lein hooks for: clean, compile, test, and jar.
:hooks [leiningen.cljsbuild]
:cljsbuild {
Expand Down
4 changes: 2 additions & 2 deletions example-projects/simple/project.clj
@@ -1,11 +1,11 @@
(defproject cljsbuild-example-simple "0.2.4"
(defproject cljsbuild-example-simple "0.2.5"
:description "A simple example of how to use lein-cljsbuild"
:source-path "src-clj"
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.0.4"]
[hiccup "1.0.0"]]
:dev-dependencies [[lein-ring "0.7.0"]]
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
:cljsbuild {
:builds [{:source-path "src-cljs"
:compiler {:output-to "resources/public/js/main.js"
Expand Down
2 changes: 1 addition & 1 deletion plugin/project.clj
@@ -1,4 +1,4 @@
(defproject lein-cljsbuild "0.2.4"
(defproject lein-cljsbuild "0.2.5"
:description "ClojureScript Autobuilder Plugin"
:url "http://github.com/emezeske/lein-cljsbuild"
:license {:name "Eclipse Public License - v 1.0"
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/leiningen/cljsbuild/subproject.clj
Expand Up @@ -3,7 +3,7 @@
(:require
[clojure.string :as string]))

(def cljsbuild-dependencies '[[cljsbuild "0.2.4"]])
(def cljsbuild-dependencies '[[cljsbuild "0.2.5"]])
(def required-clojure-version "1.3.0")

(defn- numeric-version [v]
Expand Down
2 changes: 1 addition & 1 deletion sample.project.clj
Expand Up @@ -10,7 +10,7 @@
:dependencies [[org.clojure/clojure "1.3.0"]]
; Your project should plugin-depend on lein-cljsbuild, to ensure that
; the right version of the plugin is installed.
:plugins [[lein-cljsbuild "0.2.4"]]
:plugins [[lein-cljsbuild "0.2.5"]]
; The standard Leiningen :source-path option is used by lein-cljsbuild
; to determine the source directory from which crossover files will
; be copied. Leiningen defaults to "src".
Expand Down
4 changes: 2 additions & 2 deletions support/project.clj
@@ -1,4 +1,4 @@
(defproject cljsbuild "0.2.4"
(defproject cljsbuild "0.2.5"
:description "ClojureScript Autobuilder"
:url "http://github.com/emezeske/lein-cljsbuild"
:license {:name "Eclipse Public License - v 1.0"
Expand All @@ -8,7 +8,7 @@
[org.clojure/clojurescript "0.0-1443"
:exclusions [org.apache.ant/ant]]
[fs "1.1.2"]
[clj-stacktrace "0.2.4"]]
[clj-stacktrace "0.2.5"]]
:dev-dependencies [[midje "1.4.0"]
; NOTE: lein-midje requires different versions to be
; installed for lein1 vs lein2 compatibility :(.
Expand Down

0 comments on commit 20783c1

Please sign in to comment.