Skip to content

Commit

Permalink
1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Neise committed Mar 7, 2016
1 parent e265b25 commit 6d879b7
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 32 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ 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/1.1.2/doc/REPL.md)
* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.2/doc/TESTING.md)
* [Launching REPLs for interactive development] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/doc/REPL.md)
* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/doc/TESTING.md)

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

*Note that cljsbuild crossovers are deprecated, and will be removed eventually.
You should never use them. Please use either [reader conditionals](http://dev.clojure.org/display/design/Reader+Conditionals)
Expand All @@ -36,7 +36,7 @@ file in the `:plugins` section:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "1.1.2"]])
:plugins [[lein-cljsbuild "1.1.3"]])
```

In addition, _you should add an explicit ClojureScript dependency to your
Expand All @@ -54,15 +54,15 @@ version of lein-cljsbuild currently requires a minimum of ClojureScript
## Just Give Me a Damned Example Already!

See the
[example-projects] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.2/example-projects)
[example-projects] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/example-projects/simple)
[simple project] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/example-projects/advanced)
[advanced project] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/sample.project.clj)
[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/sample.project.clj)
file for an exhaustive list of all options supported by lein-cljsbuild.

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

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]
:cljsbuild {
:builds [{
; The path to the top-level ClojureScript source directory:
Expand All @@ -86,7 +86,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/1.1.2/sample.project.clj)
[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/sample.project.clj)
file.

## Basic Usage
Expand Down Expand Up @@ -163,7 +163,7 @@ and will build all of them in parallel:
```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]
:cljsbuild {
:builds [
{:source-paths ["src-cljs-main"]
Expand All @@ -181,7 +181,7 @@ only that one:

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

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]
:cljsbuild {
:builds {
:main
Expand All @@ -214,20 +214,20 @@ 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/1.1.2/example-projects/advanced)
[example-projects/advanced] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/doc/REPL.md)
[REPL documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/doc/TESTING.md)
[testing documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/doc/TESTING.md)
for more details.

## Extended Configuration
Expand Down
2 changes: 1 addition & 1 deletion doc/CROSSOVERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ And your `project.clj` file looks like this:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]
:source-paths ["src-clj"]
:cljsbuild {
; Each entry in the :crossovers vector describes a Clojure namespace
Expand Down
5 changes: 5 additions & 0 deletions doc/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for lein-cljsbuild

## [1.1.3](https://github.com/emezeske/lein-cljsbuild/pulls?utf8=%E2%9C%93&q=is%3Aclosed+is%3Apr+milestone%3A1.1.3)

* Remove `System.exit` after compilation
* Remove cljs-compat

## [1.1.2](https://github.com/emezeske/lein-cljsbuild/pulls?utf8=%E2%9C%93&q=is%3Aclosed+is%3Apr+milestone%3A1.1.2)

* Avoid calls to cljs.build.api/src-file->target_file on deps.cljs
Expand Down
4 changes: 2 additions & 2 deletions doc/REPL.md
Original file line number Diff line number Diff line change
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 "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]
: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/1.1.2/example-projects/advanced)
[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test:

```clj
(defproject lein-cljsbuild-example "1.2.3"
:plugins [[lein-cljsbuild "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]
: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/1.1.2/example-projects/advanced)
[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/example-projects/advanced/resources/private/html/unit-test.html)
[static HTML page] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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/1.1.2/example-projects/advanced/phantom/unit-test.js)
[a simple script] (https://github.com/emezeske/lein-cljsbuild/blob/1.1.3/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
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(defproject cljsbuild-example-advanced "1.1.2"
(defproject cljsbuild-example-advanced "1.1.3"
:description "An advanced example of how to use lein-cljsbuild"
:source-paths ["src-clj"]
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-3211"
:exclusions [org.apache.ant/ant]]
[compojure "1.1.6"]
[hiccup "1.0.4"]]
:plugins [[lein-cljsbuild "1.1.2"]
:plugins [[lein-cljsbuild "1.1.3"]
[lein-ring "0.8.7"]]
; Enable the lein hooks for: compile, test, and jar.
:hooks [leiningen.cljsbuild]
Expand Down
2 changes: 1 addition & 1 deletion example-projects/none/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-3211"]]

:plugins [[lein-cljsbuild "1.1.2"]]
:plugins [[lein-cljsbuild "1.1.3"]]

:source-paths ["src"]

Expand Down
4 changes: 2 additions & 2 deletions example-projects/simple/project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(defproject cljsbuild-example-simple "1.1.2"
(defproject cljsbuild-example-simple "1.1.3"
:description "A simple example of how to use lein-cljsbuild"
:source-paths ["src-clj"]
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-3211"
:exclusions [org.apache.ant/ant]]
[compojure "1.1.6"]
[hiccup "1.0.4"]]
:plugins [[lein-cljsbuild "1.1.2"]
:plugins [[lein-cljsbuild "1.1.3"]
[lein-ring "0.8.7"]]
:cljsbuild {
:builds [{:source-paths ["src-cljs"]
Expand Down
4 changes: 2 additions & 2 deletions plugin/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject lein-cljsbuild "1.1.3-SNAPSHOT"
(defproject lein-cljsbuild "1.1.3"
:description "ClojureScript Autobuilder Plugin"
:url "http://github.com/emezeske/lein-cljsbuild"
:license
Expand All @@ -10,6 +10,6 @@
:dev {
:dependencies [
[midje "1.6.3"]
[cljsbuild "1.1.2"]]
[cljsbuild "1.1.3"]]
:plugins [[lein-midje "3.1.3"]]}}
:eval-in-leiningen true)
2 changes: 1 addition & 1 deletion support/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject cljsbuild "1.1.3-SNAPSHOT"
(defproject cljsbuild "1.1.3"
:description "ClojureScript Autobuilder"
:url "http://github.com/emezeske/lein-cljsbuild"
:license
Expand Down

0 comments on commit 6d879b7

Please sign in to comment.