From 6dabe6e3f0e5de1eac897e2f8e433afcbf4a94ab Mon Sep 17 00:00:00 2001 From: Chas Emerick Date: Wed, 6 Nov 2013 05:16:33 -0500 Subject: [PATCH] 1.0.0-alpha1 --- README.md | 40 +++++++++++++-------------- doc/CROSSOVERS.md | 2 +- doc/RELEASE-NOTES.md | 6 ++-- doc/REPL.md | 4 +-- doc/TESTING.md | 8 +++--- example-projects/advanced/project.clj | 4 +-- example-projects/simple/project.clj | 4 +-- plugin/project.clj | 4 +-- support/project.clj | 2 +- 9 files changed, 38 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 8ddef72f..c26f54e2 100644 --- a/README.md +++ b/README.md @@ -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/1.0.0-SNAPSHOT/doc/REPL.md) -* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-SNAPSHOT/doc/TESTING.md) -* [Sharing code between Clojure and ClojureScript] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-SNAPSHOT/doc/CROSSOVERS.md) +* [Launching REPLs for interactive development] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/doc/REPL.md) +* [Launching ClojureScript tests] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/doc/TESTING.md) +* [Sharing code between Clojure and ClojureScript] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/doc/CROSSOVERS.md) -The latest version of lein-cljsbuild is `1.0.0-SNAPSHOT`. -[See the release notes here.](https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-SNAPSHOT/doc/RELEASE-NOTES.md) +The latest version of lein-cljsbuild is `1.0.0-alpha1`. +[See the release notes here.](https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/doc/RELEASE-NOTES.md) ## Requirements @@ -27,7 +27,7 @@ file in the `:plugins` section: ```clj (defproject lein-cljsbuild-example "1.2.3" - :plugins [[lein-cljsbuild "1.0.0-SNAPSHOT"]]) + :plugins [[lein-cljsbuild "1.0.0-alpha1"]]) ``` In addition, _you should add an explicit ClojureScript dependency to your @@ -44,15 +44,15 @@ can use lein-cljsbuild with any ClojureScript version. ## Just Give Me a Damned Example Already! See the -[example-projects] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-SNAPSHOT/example-projects) +[example-projects] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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.0.0-SNAPSHOT/example-projects/simple) +[simple project] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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.0.0-SNAPSHOT/example-projects/advanced) +[advanced project] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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.0.0-SNAPSHOT/sample.project.clj) +[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/sample.project.clj) file for an exhaustive list of all options supported by lein-cljsbuild. ## Basic Configuration @@ -62,7 +62,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.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :cljsbuild { :builds [{ ; The path to the top-level ClojureScript source directory: @@ -76,7 +76,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.0.0-SNAPSHOT/sample.project.clj) +[sample.project.clj] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/sample.project.clj) file. ## Basic Usage @@ -127,7 +127,7 @@ the ClojureScript as well if enabled. ``` If you are using the -[crossovers] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-SNAPSHOT/doc/CROSSOVERS.md) +[crossovers] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/doc/CROSSOVERS.md) feature, and want the `:crossover-path` included in the JAR file, add this entry to your top-level `:cljsbuild` configuration: @@ -143,7 +143,7 @@ and will build all of them in parallel: ```clj (defproject lein-cljsbuild-example "1.2.3" - :plugins [[lein-cljsbuild "1.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :cljsbuild { :builds [ {:source-paths ["src-cljs-main"] @@ -161,7 +161,7 @@ only that one: ```clj (defproject lein-cljsbuild-example "1.2.3" - :plugins [[lein-cljsbuild "1.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :cljsbuild { :builds [ {:source-paths ["src-cljs-main"] @@ -178,7 +178,7 @@ them as a map instead of a vector: ```clj (defproject lein-cljsbuild-example "1.2.3" - :plugins [[lein-cljsbuild "1.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :cljsbuild { :builds { :main @@ -194,27 +194,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/1.0.0-SNAPSHOT/example-projects/advanced) +[example-projects/advanced] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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.0.0-SNAPSHOT/doc/REPL.md) +[REPL documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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.0.0-SNAPSHOT/doc/TESTING.md) +[testing documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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/1.0.0-SNAPSHOT/doc/CROSSOVERS.md) +[crossovers documentation] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/doc/CROSSOVERS.md) for more details. ## ClojureScript Version diff --git a/doc/CROSSOVERS.md b/doc/CROSSOVERS.md index f2682a6a..6bcdb045 100644 --- a/doc/CROSSOVERS.md +++ b/doc/CROSSOVERS.md @@ -35,7 +35,7 @@ And your `project.clj` file looks like this: ```clj (defproject lein-cljsbuild-example "1.2.3" - :plugins [[lein-cljsbuild "1.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :source-paths ["src-clj"] :cljsbuild { ; Each entry in the :crossovers vector describes a Clojure namespace diff --git a/doc/RELEASE-NOTES.md b/doc/RELEASE-NOTES.md index f3911693..e0997a0d 100644 --- a/doc/RELEASE-NOTES.md +++ b/doc/RELEASE-NOTES.md @@ -1,13 +1,15 @@ # Release Notes for lein-cljsbuild -## [1.0.0](https://github.com/emezeske/lein-cljsbuild/issues?milestone=31&state=closed) +## [1.0.0-alpha1](https://github.com/emezeske/lein-cljsbuild/issues?milestone=29&state=closed) * The name of each `:test-command` entry is now printed prior to that test being run. (gh-244) * Fixed regression where `cljsbuild auto` would exit on a compilation error (gh-249) +* Fixed regression where tests would halt on a failing `:test-command`, rather + than proceeding through all. (gh-252) -## [0.3.4](https://github.com/emezeske/lein-cljsbuild/issues?milestone=31&state=closed) +## [0.3.4](https://github.com/emezeske/lein-cljsbuild/issues?milestone=32&state=closed) * Added new `sample` subtask that emits the contents of the `sample.project.clj` file detailing cljsbuild's options (gh-232) diff --git a/doc/REPL.md b/doc/REPL.md index f9def654..1e4634ad 100644 --- a/doc/REPL.md +++ b/doc/REPL.md @@ -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.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :cljsbuild { :repl-listen-port 9000 :repl-launch-commands @@ -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.0.0-SNAPSHOT/example-projects/advanced) +[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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) diff --git a/doc/TESTING.md b/doc/TESTING.md index 505281c5..96b41823 100644 --- a/doc/TESTING.md +++ b/doc/TESTING.md @@ -7,7 +7,7 @@ test: ```clj (defproject lein-cljsbuild-example "1.2.3" - :plugins [[lein-cljsbuild "1.0.0-SNAPSHOT"]] + :plugins [[lein-cljsbuild "1.0.0-alpha1"]] :cljsbuild { :test-commands {"my-test" ["phantomjs" "phantom/unit-test.js" "..."]}) @@ -38,7 +38,7 @@ 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.0.0-SNAPSHOT/example-projects/advanced) +[advanced example project] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/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: @@ -46,10 +46,10 @@ components that come together to make this work: 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.0.0-SNAPSHOT/example-projects/advanced/resources/private/html/unit-test.html) +[static HTML page] (https://github.com/emezeske/lein-cljsbuild/blob/1.0.0-alpha1/example-projects/advanced/resources/private/html/unit-test.html) with a `