forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
15
node_modules/git-remote-origin-url/index.js
generated
vendored
Normal file
15
node_modules/git-remote-origin-url/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
const gitconfig = require('gitconfiglocal');
|
||||
const pify = require('pify');
|
||||
|
||||
module.exports = dir => {
|
||||
return pify(gitconfig)(dir || process.cwd()).then(config => {
|
||||
var url = config.remote && config.remote.origin && config.remote.origin.url;
|
||||
|
||||
if (!url) {
|
||||
throw new Error('Couldn\'t find origin url');
|
||||
}
|
||||
|
||||
return url;
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue