@tuzki/cli
Version:
🐇 lowcode-cli is an efficient cli tool for Rabbitpre plugin component secondary development. ❤️
45 lines (44 loc) • 1.42 kB
JavaScript
/*
* 注入到 project-service 的工具方法
*
* @Author: xu.jin
* @Date: 2023-09-07 16:35:58
*
* Copyright © 2014-2023 Rabbitpre.com. All Rights Reserved.
*/
import { askProjectInfo, checkoutDevelopVersion, compress, downloadCode, getModuleConfig, selectDevelopVersion, selectModule, uploadSource, } from './utils/project.js';
import { batchExecCommand, cdTargetDir, execCommand, execCommandPromise, isCommandExist, } from './utils/shell.js';
import config from './utils/config.js';
import { getModuleImplement, getModuleModel } from './apis/init-project.js';
import { parse, stringify } from './utils/comment-json.js';
import { __SECRET_INTERNALS__ } from './utils/constants.js';
import { get, post, request } from './utils/request.js';
import { getDebugConfig } from './utils/debug-config.js';
export const injectedUtils = {
project: {
getModuleConfig,
selectModule,
downloadCode,
askProjectInfo,
uploadSource,
compress,
getModuleModel,
getModuleImplement,
checkoutDevelopVersion,
selectDevelopVersion,
},
config,
debug: { getDebugConfig },
request: { get, post, request },
commentJson: { parse, stringify },
shell: {
execCommand,
execCommandPromise,
batchExecCommand,
isCommandExist,
cdTargetDir,
},
variables: {
__SECRET_INTERNALS__,
},
};