deploy-website
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -239,3 +239,3 @@ "use strict"; | ||
getRemoteUrl(remote) { | ||
console.log('ger remote url', remote); | ||
console.log('getRemoteUrl()', remote); | ||
// with ssh: git@github.com:lichtquelle/deploy-website_dev.git | ||
@@ -248,3 +248,3 @@ // with https: https://github.com/lichtquelle/deploy-website_dev.git | ||
if (repo) { | ||
console.log('repoo', repo); | ||
console.log('repo:', repo); | ||
return repo; | ||
@@ -251,0 +251,0 @@ } |
@@ -41,2 +41,3 @@ "use strict"; | ||
function getRepo(options) { | ||
console.log('getRepo()', JSON.stringify(options)); | ||
if (options.repo) { | ||
@@ -46,2 +47,3 @@ return Promise.resolve(options.repo); | ||
else { | ||
console.log('process.cwd()', process.cwd()); | ||
const git = new git_1.Git(process.cwd(), options.git); | ||
@@ -96,5 +98,9 @@ return git.getRemoteUrl(options.remote); | ||
.then(async (repo) => { | ||
console.log('TWO'); | ||
repoUrl = repo; | ||
const prettyName = (0, filenamify_url_1.default)(repo.replace(/[:@]/gm, '')); | ||
const clone = path_1.default.join(getCacheDir(), prettyName); | ||
const cacheDir = getCacheDir(); | ||
console.log('cacheDir', cacheDir); | ||
console.log('prettyName', prettyName); | ||
const clone = path_1.default.join(cacheDir, prettyName); | ||
log('Cloning %s into %s', repo, clone); | ||
@@ -101,0 +107,0 @@ const git = (await git_1.Git.clone(repo, clone, options.branch, options)); |
{ | ||
"name": "deploy-website", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Deploy your static website to AWS S3 or GitHub Pages.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
33150
890