Skip to content

Commit

Permalink
Add dummy index page.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobie committed Sep 13, 2010
1 parent ce9c816 commit 9e96c59
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
12 changes: 12 additions & 0 deletions assets/index.html
@@ -0,0 +1,12 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Evidence Gatherer</title>
</head>
<body>
<h1>Evidence Gatherer</h1>

</body>
</html>

13 changes: 10 additions & 3 deletions lib/builder/suiteBuilder.js
@@ -1,12 +1,12 @@
var fs = require('fs'),
path = require('path'),
async = require('../helpers/async'),
fn = require('../helpers/fn'),
fileutils = require('../helpers/fileutils'),
testPageBuilder = require('./testPageBuilder');

var ASSETS_PATH = path.normalize(path.join(__dirname, '..', '..', 'assets'));

exports.createSuiteBuilder = createSuiteBuilder;

function createSuiteBuilder(config) {
var self = {}, testFiles, testPageBuilders = [];

Expand All @@ -22,7 +22,8 @@ function createSuiteBuilder(config) {
_setTestBuilders(builders);
callback(null);
},
_createManifest
_createManifest,
_cpIndex
], function(err) { callback(err, self); });
}

Expand Down Expand Up @@ -76,6 +77,12 @@ function createSuiteBuilder(config) {
fs.writeFile(config.manifest, JSON.stringify(files), 'utf8', callback);
}

function _cpIndex(callback) {
var src = path.join(ASSETS_PATH, 'index.html');
var dest = path.join(config.outputDir, 'index.html')
fileutils.cp(src, dest, callback);
}

self.build = build;
return self;
}
Expand Down

0 comments on commit 9e96c59

Please sign in to comment.