fix(core): update

This commit is contained in:
2024-06-21 19:48:43 +02:00
commit 84a10a89de
109 changed files with 11639 additions and 0 deletions

26
ts/mod_start/index.ts Normal file
View File

@ -0,0 +1,26 @@
import * as plugins from './mod.plugins.js';
import * as paths from '../paths.js';
import { logger } from '../gitzone.logging.js';
/**
* executes basic project setup for continuing to work.
* TODO: switch to smartgit
* @param argvArg
*/
export const run = async (argvArg: any) => {
logger.log('info', `preparing the project at ${paths.cwd} for development`);
const smartshellInstance = new plugins.smartshell.Smartshell({
executor: 'bash',
});
await smartshellInstance.execStrict(`cd ${paths.cwd} && git checkout master`);
await smartshellInstance.execStrict(`cd ${paths.cwd} && git pull origin master`);
await smartshellInstance.execStrict(`cd ${paths.cwd} && npm ci`);
await provideNoGitFiles();
};
const provideNoGitFiles = async () => {
logger.log('warn', 'nogit provision not yet implemented!');
};

View File

@ -0,0 +1,6 @@
export * from '../plugins.js';
// pushrocks scope
import * as smartshell from '@push.rocks/smartshell';
export { smartshell };