fix(core): update
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import * as plugins from '../npmci.plugins';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
export class CloudlyConnector {
|
||||
|
||||
}
|
||||
public announceDockerContainer(options: plugins.servezoneInterfaces.IVersionData) {}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ export class NpmciDockerManager {
|
||||
`>>npmci docker ...<< cli arguments invalid... Please read the documentation.`
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* builds a cwd of Dockerfiles by triggering a promisechain
|
||||
@ -62,7 +62,7 @@ export class NpmciDockerManager {
|
||||
.then(Dockerfile.sortDockerfiles)
|
||||
.then(Dockerfile.mapDockerfiles)
|
||||
.then(Dockerfile.buildDockerfiles);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* login to the DockerRegistries
|
||||
@ -70,7 +70,7 @@ export class NpmciDockerManager {
|
||||
public login = async () => {
|
||||
await this.prepare();
|
||||
await this.npmciRegistryStorage.loginAll();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* logs in docker
|
||||
@ -98,7 +98,7 @@ export class NpmciDockerManager {
|
||||
}
|
||||
);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* pushes an image towards a registry
|
||||
@ -146,7 +146,7 @@ export class NpmciDockerManager {
|
||||
await dockerfile.push(dockerRegistryToPushTo, suffix);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* pulls an image
|
||||
@ -165,7 +165,7 @@ export class NpmciDockerManager {
|
||||
for (const dockerfile of dockerfileArray) {
|
||||
await dockerfile.pull(localDockerRegistry, suffix);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* tests docker files
|
||||
@ -173,5 +173,5 @@ export class NpmciDockerManager {
|
||||
public test = async () => {
|
||||
await this.prepare();
|
||||
return await Dockerfile.readDockerfiles(this).then(Dockerfile.testDockerfiles);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -3,4 +3,3 @@ import * as plugins from './mod.plugins';
|
||||
import * as paths from '../npmci.paths';
|
||||
|
||||
import { Dockerfile } from './mod.classes.dockerfile';
|
||||
|
||||
|
@ -27,7 +27,7 @@ export class NpmciGitManager {
|
||||
} else {
|
||||
logger.log('info', `npmci git -> cli arguments invalid! Please read the documentation.`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public mirror = async () => {
|
||||
const githubToken = process.env.NPMCI_GIT_GITHUBTOKEN;
|
||||
@ -46,9 +46,9 @@ export class NpmciGitManager {
|
||||
if (githubToken) {
|
||||
logger.log('info', 'found github token.');
|
||||
logger.log('info', 'attempting the mirror the repository to GitHub');
|
||||
|
||||
|
||||
// plugins.smartgit.GitRepo;
|
||||
|
||||
|
||||
// add the mirror
|
||||
await bash(
|
||||
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
|
||||
@ -61,5 +61,5 @@ export class NpmciGitManager {
|
||||
logger.log('error', `cannot find NPMCI_GIT_GITHUBTOKEN env var!`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ export class Npmci {
|
||||
await this.npmciConfig.init();
|
||||
this.npmciCli.startParse();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -106,5 +106,5 @@ export class NpmciCli {
|
||||
|
||||
public startParse = () => {
|
||||
this.smartcli.startParse();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ export class NpmciConfig {
|
||||
logger
|
||||
);
|
||||
|
||||
this.configObject = {
|
||||
this.configObject = {
|
||||
projectInfo: new plugins.projectinfo.ProjectInfo(paths.cwd),
|
||||
npmGlobalTools: [],
|
||||
dockerRegistries: [],
|
||||
|
@ -1,10 +1,9 @@
|
||||
import * as plugins from './npmci.plugins';
|
||||
import * as paths from './npmci.paths';
|
||||
import { logger } from "./npmci.logging";
|
||||
import { logger } from './npmci.logging';
|
||||
import { Npmci } from './npmci.classes.npmci';
|
||||
|
||||
export class NpmciInfo {
|
||||
|
||||
public npmciRef: Npmci;
|
||||
public projectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
|
||||
|
||||
@ -12,7 +11,7 @@ export class NpmciInfo {
|
||||
this.npmciRef = npmciArg;
|
||||
}
|
||||
|
||||
public printToConsole () {
|
||||
public printToConsole() {
|
||||
logger.log('info', `npmci version: ${this.projectInfo.version}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,7 @@ export { path };
|
||||
// @servezone
|
||||
import * as servezoneInterfaces from '@servezone/servezone-interfaces';
|
||||
|
||||
export {
|
||||
servezoneInterfaces
|
||||
};
|
||||
export { servezoneInterfaces };
|
||||
|
||||
// @pushrocks
|
||||
import * as npmextra from '@pushrocks/npmextra';
|
||||
|
Reference in New Issue
Block a user