Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

update to 3.0.0 #1

Merged
merged 4 commits into from

1 participant

@slagyr
Collaborator

No description provided.

@slagyr slagyr merged commit da4bdda into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 27, 2014
  1. @slagyr

    updating for speclj 3.0.0

    slagyr authored
  2. @slagyr

    ignore .idea

    slagyr authored
  3. @slagyr

    1.0.0 version

    slagyr authored
  4. @slagyr

    tweak to license and readme

    slagyr authored
This page is out of date. Refresh to see the latest.
View
9 .gitignore
@@ -1,11 +1,12 @@
-/target
-/lib
-/classes
+/.idea
/checkouts
+/classes
+/lib
+/target
pom.xml
pom.xml.asc
-*.jar
*.class
+*.jar
.lein-deps-sum
.lein-failures
.lein-plugins
View
2  LICENSE.md
@@ -1,4 +1,4 @@
-Copyright (C) 2013 Connor Mendenhall
+Copyright (C) 2013 Connor Mendenhall, 2014 Micah Martin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
View
16 README.md
@@ -1,13 +1,25 @@
# specljs-template
-A Leiningen template for a project using specljs tests.
+A Leiningen template for a ClojureScript project using speclj.
## Usage
$ lein new specljs <Your project name>
+## Verify it worked
+
+`cd` into your new project and run:
+
+ lein cljsbuild once dev
+
+You should see one failing spec.
+
+Files are also created for Clojure code. You can check these with:
+
+ lein spec
+
## License
-Copyright © 2013 Connor Mendenhall
+Copyright © 2013 Connor Mendenhall, 2014 Micah Martin
Distributed under the MIT License.
View
2  project.clj
@@ -1,4 +1,4 @@
-(defproject specljs/lein-template "0.1.1"
+(defproject specljs/lein-template "1.0.0"
:description "A Leiningen template for specljs"
:url "http://speclj.com"
:license {:name "MIT License"
View
2  src/leiningen/new/specljs.clj
@@ -25,5 +25,5 @@
["src/cljs/{{nested-dirs}}/core.cljs" (render "core.cljs" data)]
["spec/cljs/{{nested-dirs}}/core_spec.cljs" (render "spec.cljs" data)]
- ["bin/specljs_runner.js" (render "specljs_runner.js")])))
+ ["bin/speclj" (render "speclj")])))
View
31 src/leiningen/new/specljs/project.clj
@@ -2,28 +2,25 @@
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
- :url "http://www.eclipse.org/legal/epl-v10.html"}
+ :url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]]
- :profiles {:dev {:dependencies [[speclj "2.5.0"]
- [specljs "2.7.4"]]}}
- :plugins [[speclj "2.5.0"]
- [specljs "2.7.4"]
- [lein-cljsbuild "0.3.2"]]
+ :profiles {:dev {:dependencies [[org.clojure/clojurescript "0.0-2014"]
+ [speclj "3.0.0"]]}}
+ :plugins [[speclj "3.0.0"]
+ [lein-cljsbuild "1.0.2"]]
- :cljsbuild ~(let [run-specs ["phantomjs" "bin/specljs_runner.js" "public/javascript/{{name}}_dev.js"]]
- {:builds {:dev {:source-paths ["src/cljs" "spec/cljs"]
- :compiler {:output-to "public/javascript/{{name}}_dev.js"
- :optimizations :whitespace
- :pretty-print true}
- :notify-command run-specs}
+ :cljsbuild {:builds {:dev {:source-paths ["src/cljs" "spec/cljs"]
+ :compiler {:output-to "js/{{name}}_dev.js"
+ :optimizations :whitespace
+ :pretty-print true}
+ :notify-command ["phantomjs" "bin/speclj" "js/{{name}}_dev.js"]}
- :prod {:source-paths ["src/cljs"]
- :compiler {:output-to "public/javascript/{{name}}.js"
- :optimizations :simple}}}
-
- :test-commands {"test" run-specs}})
+ :prod {:source-paths ["src/cljs"]
+ :compiler {:output-to "js/{{name}}.js"
+ :optimizations :simple}}}
+ :test-commands {"test" ["phantomjs" "bin/speclj" "js/{{name}}_dev.js"]}}
:source-paths ["src/clj" "src/cljs"]
:test-paths ["spec/clj"])
View
4 src/leiningen/new/specljs/spec.cljs
@@ -1,6 +1,6 @@
(ns {{name}}.core-spec
- (:require-macros [specljs.core :refer [describe it should=]])
- (:require [specljs.core]
+ (:require-macros [speclj.core :refer [describe it should=]])
+ (:require [speclj.core]
[{{name}}.core]))
(describe "A ClojureScript test"
View
4 src/leiningen/new/specljs/specljs_runner.js → src/leiningen/new/specljs/speclj
@@ -11,8 +11,8 @@ p.onConsoleMessage = function (x) {
p.injectJs(phantom.args[0]);
var result = p.evaluate(function () {
- specljs.run.standard.armed = true;
- return specljs.run.standard.run_specs(
+ speclj.run.standard.armed = true;
+ return speclj.run.standard.run_specs(
cljs.core.keyword("color"), true
);
});
Something went wrong with that request. Please try again.