From 457d2bb963c1fbca9a36ad74ae4b74d928395bce Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Mon, 2 May 2016 11:30:59 +0300 Subject: [PATCH] Move single articles out parent dir --- gruntfile.js | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 136626241..29f2dc458 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -429,7 +429,7 @@ module.exports = function(grunt) { mochaNode: { cmd: "grunt simplemocha:node" }, - injectArticles: { + injectArticleSnippets: { cmd: "node node_modules/markdown-snippet-injector/index.js --root=<%= localCfg.srcAppsTests %> --docsroot=<%= localCfg.outArticlesDir %>" } }, @@ -663,6 +663,29 @@ module.exports = function(grunt) { grunt.registerTask("distribute-ts-apps-files", [ "copy:readyTsAppFiles" ]); + grunt.registerTask("herdArticles", function() { + var moveSinglesUp = function(dir) { + var objs = fs.readdirSync(dir); + for (var i=0; i