tns-template-tab-navigation
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -1,2 +0,1 @@ | ||
require("./bundle-config"); | ||
const application = require("application"); | ||
@@ -3,0 +2,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"templateType": "App template", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Tabbed interface template", | ||
@@ -36,4 +36,4 @@ "author": "Telerik <support@telerik.com>", | ||
"eslint": "~4.9.0", | ||
"nativescript-dev-sass": "~1.5.0", | ||
"nativescript-dev-webpack": "~0.10.0" | ||
"nativescript-dev-sass": "~1.6.0", | ||
"nativescript-dev-webpack": "~0.12.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
@@ -5,3 +5,3 @@ const fs = require("fs"); | ||
console.log("postinstall script running..."); | ||
console.log("Postinstall script running..."); | ||
@@ -8,0 +8,0 @@ getPackageJson() |
@@ -5,3 +5,3 @@ const fs = require("fs"); | ||
console.log("preinstall script running..."); | ||
console.log("Preinstall script running..."); | ||
@@ -11,16 +11,19 @@ const eslintConfig = ".eslintrc"; | ||
const jsbeautifyConfig = ".jsbeautifyrc"; | ||
const srcGitignore = "dot.gitignore"; | ||
const destGitignore = ".gitignore"; | ||
getAppRootFolder() | ||
.then((appRootFolder) => Promise.all([ | ||
copyConfig(eslintConfig, appRootFolder), | ||
copyConfig(eslintIgnoreConfig, appRootFolder), | ||
copyConfig(jsbeautifyConfig, appRootFolder) | ||
copyFile(appRootFolder, eslintConfig), | ||
copyFile(appRootFolder, eslintIgnoreConfig), | ||
copyFile(appRootFolder, jsbeautifyConfig), | ||
copyFile(appRootFolder, srcGitignore, destGitignore) | ||
])); | ||
function copyConfig(configFilename, appRootFolder) { | ||
function copyFile(appRootFolder, srcFilename, destFilename = srcFilename) { | ||
return new Promise((resolve, reject) => { | ||
const sourcePath = path.join(__dirname, configFilename); | ||
const destPath = path.join(appRootFolder, configFilename); | ||
const sourcePath = path.join(__dirname, srcFilename); | ||
const destPath = path.join(appRootFolder, destFilename); | ||
console.log(`creating ${path.resolve(destPath)}...`); | ||
console.log(`Creating ${path.resolve(destPath)}...`); | ||
fs.rename(sourcePath, destPath, (err) => { | ||
@@ -27,0 +30,0 @@ if (err) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
2904934
565