summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDon Anderson <dda@ddanderson.com>2015-01-08 20:00:34 -0500
committerDon Anderson <dda@ddanderson.com>2015-01-13 11:04:58 -0500
commit1f2f5c4f0bc43cd639018db48c65b7f49869dc66 (patch)
tree483ad80079a510a1478b57c198913e1da3f5a219 /tools
parent8b008e60d84ec76d53717871384f0cededd8caa0 (diff)
downloadmongo-1f2f5c4f0bc43cd639018db48c65b7f49869dc66.tar.gz
Added s_wtstats to build the wtstats template. gulp now
generates tools/template/wtstats.html.template and s_wtstats creates tools/wtstats.html.template if it is different.
Diffstat (limited to 'tools')
-rw-r--r--tools/template/README.md2
-rw-r--r--tools/template/gulpfile.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/template/README.md b/tools/template/README.md
index 4e2cb348dd7..14d2f91d185 100644
--- a/tools/template/README.md
+++ b/tools/template/README.md
@@ -14,7 +14,7 @@ Once you have `npm` installed, follow these steps:
2. run `npm install` to install all missing dependencies.
3. run `npm run build` to build the template.
-The build script packs everything into a single HTML file and copies it to its parent folder as `./tools/wtstats.html.template`.
+The build script packs everything into a single HTML file and copies it to `./tools/template/wtstats.html.template`.
### Usage
diff --git a/tools/template/gulpfile.js b/tools/template/gulpfile.js
index e03be8dcaf3..d2da47ec388 100644
--- a/tools/template/gulpfile.js
+++ b/tools/template/gulpfile.js
@@ -135,7 +135,7 @@ gulp.task('styles', function() {
/**
* 'gulp pack' will build all targets, then run packify to bundle everything into
- * a single .html file, and save this template in the tools directory.
+ * a single .html file, and save this template in the templates directory.
*/
gulp.task('pack', ['default'], function() {
process.chdir('./' + BUILD)
@@ -144,7 +144,7 @@ gulp.task('pack', ['default'], function() {
}
packify(opts, function (err, packed) {
if (err) return console.error(err);
- fs.writeFileSync('../../wtstats.html.template', packed);
+ fs.writeFileSync('../wtstats.html.template', packed);
});
});