mirror of https://github.com/status-im/reagent.git
Fix CI tests
Gen-site.js is used both to pre-render HTML files and run tests.
This commit is contained in:
parent
ea5009c9ed
commit
19ae267b32
|
@ -2,7 +2,7 @@
|
|||
var cljsLoad = require("./cljs-load");
|
||||
|
||||
var srcFile = "pre-render/main.js";
|
||||
var outputDirectory = "pre-render/out/";
|
||||
var outputDirectory = "outsite/public/js/out";
|
||||
var devFile = "reagenttest/runtests.js";
|
||||
|
||||
var beep = "\u0007";
|
||||
|
@ -13,7 +13,7 @@ if (typeof location === "undefined") {
|
|||
global.location = {};
|
||||
}
|
||||
var gensite = function () {
|
||||
console.log("Loading " + srcFile);
|
||||
console.log("Pre-rendering or testing...");
|
||||
var optNone = cljsLoad.load(srcFile, outputDirectory, devFile);
|
||||
sitetools.server.genpages({"opt-none": optNone});
|
||||
}
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
[cljs.test :as test :include-macros true]
|
||||
[reagent.core :as r]
|
||||
[reagent.debug :refer-macros [dbg log]]
|
||||
[reagentdemo.core :as demo]))
|
||||
[reagentdemo.core :as demo]
|
||||
[sitetools.server]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
|
|
Loading…
Reference in New Issue