Comparing version 0.2.0 to 0.3.0
@@ -273,2 +273,24 @@ import glob from 'glob' | ||
} | ||
export let cloneSkeleton = (name = null) => { | ||
let folder | ||
if(name) | ||
folder = `${process.cwd()}/${name}` | ||
else | ||
folder = `${process.cwd()}/dek-skeleton` | ||
clone('https://github.com/vigiadepreco/dek-skeleton', folder, (err) => { | ||
if(err){ | ||
log.warning(`Não foi possível iniciar a aplicação DEK`) | ||
console.log(err) | ||
}else{ | ||
log.warning(`Aplicação DEK iniciada com sucesso`) | ||
} | ||
}) | ||
} | ||
let resolve = (graph) => { | ||
@@ -275,0 +297,0 @@ var sorted = [], // sorted list of IDs ( returned value ) |
{ | ||
"name": "dek", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "entry.js", |
import EventEmitter from 'events' | ||
import {loadAll, loadCli, generator, log, installPackages, loadNpmDependencies, cloneRepositoryList} from './Organized' | ||
import {loadAll, loadCli, generator, log, installPackages, loadNpmDependencies, cloneRepositoryList, cloneSkeleton} from './Organized' | ||
import minimist from 'minimist' | ||
@@ -45,2 +45,7 @@ | ||
}else if(cliFunc && cliFunc == 'init'){ | ||
if(generatorFunc) | ||
cloneSkeleton(generatorFunc) | ||
else | ||
cloneSkeleton() | ||
}else{ | ||
@@ -47,0 +52,0 @@ loadAll([dir + '/plugins/*/main.js'], async () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12050
322