cdk8s-cli
Version:
This is the command line tool for Cloud Development Kit (CDK) for Kubernetes (cdk8s).
18 lines (12 loc) • 511 B
JavaScript
const { execSync } = require('child_process');
const { readFileSync } = require('fs');
exports.post = ctx => {
const env = { ...process.env };
execSync('npm install', { stdio: 'inherit', env });
// import k8s objects
execSync('npm run import', { stdio: 'inherit', env });
execSync('npm run compile', { stdio: 'inherit', env });
execSync('npm run test -- -u', { stdio: 'inherit', env });
execSync('npm run synth', { stdio: 'inherit', env });
console.log(readFileSync('./help', 'utf-8'));
};