Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if( options.remote == undefined )
options.remote = obj.remote
}
var directory = path.join(__dirname,"/logs");
var gitDirectory = path.join(directory, ".git");
var dataFile = path.join(directory, "pomodoro.json");
var gh_pages = path.join(directory, "www")
// Save message to repo.
if( options.remote )
{
// starting a new repo
if( !fs.existsSync( gitDirectory ) )
{
require('simple-git')()
.clone(options.remote,directory, function (err)
{
// done.
commitLogMessage();
});
}
else
{
// update repo and when there are changes, pull changes
require('simple-git')(directory)
.pull(function(err, update)
{
if(update && update.summary.changes)
{
console.log( "pulled latest")
}
if( options.remote == undefined )
options.remote = obj.remote
}
var directory = path.join(__dirname,"/logs");
var gitDirectory = path.join(directory, ".git");
var dataFile = path.join(directory, "pomodoro.json");
var gh_pages = path.join(directory, "www")
// Save message to repo.
if( options.remote )
{
// starting a new repo
if( !fs.existsSync( gitDirectory ) )
{
require('simple-git')()
.clone(options.remote,directory, function (err)
{
// done.
commitLogMessage();
});
}
else
{
// update repo and when there are changes, pull changes
require('simple-git')(directory)
.pull(function(err, update)
{
if(update && update.summary.changes)
{
console.log( "pulled latest")
}
export var CloneAndAddToIDE = function (path, gitUrl){
var pieces = gitUrl.replace(".git","").split("/");
var extensionName = pieces[pieces.length-1];
var fullPath = path + "/Extensions/" + extensionName;
console.log("Git Url : " + gitUrl);
console.log("Full path : " + fullPath);
require('simple-git')()
.clone(gitUrl, fullPath, function(err){
if(err){
ShowLoading("Extesnion doesn't exists.", true);
ShowErrorDialog("Error", "Repository doesn't exists");
}
})
.then(function() {
ShowLoading('Verifying extension...');
var AllFiles = GetAllFilesFromPath(fullPath);
var extName = GetActionName(AllFiles);
AddFileInXcode(AllFiles,path,extName);
var dep = GetDependencies(AllFiles);
if(dep != null && dep.length > 0){
InjectCocoapodsDependencies(path, dep);
}else {
ShowLoading('Completed...', true);
var CloneAndAddToAndroid = function (path, gitUrl){
var pieces = gitUrl.replace(".git","").split("/");
var extensionName = pieces[pieces.length-1];
var fullPath = path + "/Extensions/" + extensionName;
console.log("Git Url : " + gitUrl);
console.log("Full path : " + fullPath);
require('simple-git')()
.clone(gitUrl, fullPath, function(err){
if(err){
ShowLoading("Extesnion doesn't exists.", true);
ShowErrorDialog("Error", "Repository doesn't exists");
}
})
.then(function() {
ShowLoading('Verifying extension...');
var validFiles = ["java","json"];
var allFiles = GetSpecificFilesFromPath(fullPath, validFiles);
var extName = GetActionName(allFiles);
AddFilesInAndroidStudio(allFiles,fullPath,extName,path);
var dep = GetDependencies$1(allFiles);
if(dep != null && dep.length > 0){
InjectGradleDependencies(path, dep);
}else {
export var CloneAndAddToAndroid = function (path, gitUrl){
var pieces = gitUrl.replace(".git","").split("/");
var extensionName = pieces[pieces.length-1];
var fullPath = path + "/Extensions/" + extensionName;
console.log("Git Url : " + gitUrl);
console.log("Full path : " + fullPath);
require('simple-git')()
.clone(gitUrl, fullPath, function(err){
if(err){
ShowLoading("Extesnion doesn't exists.", true);
ShowErrorDialog("Error", "Repository doesn't exists");
}
})
.then(function() {
ShowLoading('Verifying extension...');
var validFiles = ["java","json"];
var allFiles = GetSpecificFilesFromPath(fullPath, validFiles);
var extName = GetActionName(allFiles);
AddFilesInAndroidStudio(allFiles,fullPath,extName,path);
var dep = GetDependencies(allFiles);
if(dep != null && dep.length > 0){
InjectGradleDependencies(path, dep);
}else {