File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ const fs = require('fs');
22
33const utils = require ( '../utils' ) ;
44
5+ /**
6+ * Update a file using a dictionary
7+ * @param {String } [filePath=''] The path for the file
8+ * @param {Object } dictionary A key-value dictionary
9+ */
510function updateFile ( filePath = '' , dictionary ) {
611 const resolvedFilePath = utils . fs . resolvePath ( filePath ) ;
712 let originalFile ;
@@ -20,6 +25,11 @@ function updateFile(filePath = '', dictionary) {
2025 } ) ;
2126}
2227
28+ /**
29+ * Copy the template folder recursively
30+ * @param {String } templatePath The template path
31+ * @param {String } destPath The destination
32+ */
2333function copy ( templatePath , destPath ) {
2434 utils . fs . copyDirRecursive ( templatePath , destPath ) ;
2535}
You can’t perform that action at this time.
0 commit comments