Fix CI tests

Gen-site.js is used both to pre-render HTML files and run tests.
This commit is contained in:
Juho Teperi 2017-03-11 00:58:14 +02:00
parent ea5009c9ed
commit 19ae267b32
2 changed files with 4 additions and 3 deletions

View File

@ -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});
}

View File

@ -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!)