Skip to content

Commit b7bec6b

Browse files
author
timdown
committed
Updated build script
1 parent 136c9ae commit b7bec6b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

builder/build.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ function copyScripts() {
8888
callback();
8989
}
9090

91+
function copyDocs() {
92+
var srcDocsDir = srcDir + "docs/";
93+
var docsBuildDir = zipDir + "docs/";
94+
fs.mkdirSync(docsBuildDir);
95+
["index.html", "jshashset.html", "main.css"].forEach(function(fileName) {
96+
copyFileSync(srcDocsDir + fileName, docsBuildDir + fileName);
97+
});
98+
callback();
99+
}
100+
91101
function clean() {
92102
var rimraf = require("rimraf");
93103
rimraf(svnDir, function() {
@@ -192,6 +202,7 @@ var actions = [
192202
checkoutSvnRepository,
193203
getVersion,
194204
copyScripts,
205+
copyDocs,
195206
clean,
196207
substituteBuildVars,
197208
minify,

0 commit comments

Comments
 (0)