tns-template-tab-navigation-ng
Advanced tools
Comparing version 6.2.2 to 6.2.3
@@ -5,7 +5,12 @@ const fs = require("fs"); | ||
module.exports = function (hookArgs) { | ||
const appRootFolder = hookArgs.projectDir; | ||
const srcGitignore = "dot.gitignore"; | ||
const destGitignore = ".gitignore"; | ||
const appRootFolder = hookArgs.projectDir; | ||
const srcVscodeExtensions = "vscode.extensions.json"; | ||
const destVscodeExtensions = ".vscode/extensions.json"; | ||
const vscodeDir = path.join(appRootFolder, ".vscode"); | ||
return copyFile(srcGitignore, destGitignore) | ||
return mkDir(vscodeDir) | ||
.then(copyFile(srcVscodeExtensions, destVscodeExtensions)) | ||
.then(copyFile(srcGitignore, destGitignore)) | ||
.then(() => { | ||
@@ -24,2 +29,14 @@ const toolsDir = path.join(appRootFolder, "tools"); | ||
function mkDir(path) { | ||
return new Promise((resolve, reject) => { | ||
fs.mkdir(path, null, (err) => { | ||
if (err) { | ||
return reject(err); | ||
} | ||
resolve(); | ||
}); | ||
}); | ||
} | ||
function copyFile(srcFilename, destFilename = srcFilename) { | ||
@@ -56,2 +73,2 @@ return new Promise((resolve, reject) => { | ||
} | ||
} | ||
}; |
@@ -15,3 +15,3 @@ { | ||
"templateType": "App template", | ||
"version": "6.2.2", | ||
"version": "6.2.3", | ||
"description": "Tabbed interface template", | ||
@@ -69,3 +69,3 @@ "author": "Telerik <support@telerik.com>", | ||
}, | ||
"gitHead": "6894b56740adbd34cb17ebf10afa6a05768747bf" | ||
"gitHead": "d15fbd6879030bdd79c02bab872559d8086e9cea" | ||
} |
1681759
94
694