fix(core): update
This commit is contained in:
26
ts/mod_start/index.ts
Normal file
26
ts/mod_start/index.ts
Normal 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!');
|
||||
};
|
6
ts/mod_start/mod.plugins.ts
Normal file
6
ts/mod_start/mod.plugins.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export * from '../plugins.js';
|
||||
|
||||
// pushrocks scope
|
||||
import * as smartshell from '@push.rocks/smartshell';
|
||||
|
||||
export { smartshell };
|
Reference in New Issue
Block a user