mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
feat: 修改文件名,更合理
This commit is contained in:
parent
05d994e50d
commit
99f85e1054
@ -2,7 +2,7 @@ import assert from 'assert';
|
|||||||
import * as utils from '@umijs/utils';
|
import * as utils from '@umijs/utils';
|
||||||
import { isValidPlugin, pathToObj } from './utils/pluginUtils';
|
import { isValidPlugin, pathToObj } from './utils/pluginUtils';
|
||||||
import { EnableBy, PluginType, ServiceStage } from './enums';
|
import { EnableBy, PluginType, ServiceStage } from './enums';
|
||||||
import Logger from '../logger/logger';
|
import Logger from '../logger';
|
||||||
// TODO
|
// TODO
|
||||||
// 标准化 logger
|
// 标准化 logger
|
||||||
export default class PluginAPI {
|
export default class PluginAPI {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
import Config from './config';
|
import Config from './config';
|
||||||
|
import Logger from './logger';
|
||||||
import Service from './service';
|
import Service from './service';
|
||||||
import PluginAPI from './service/pluginAPI';
|
import PluginAPI from './service/pluginAPI';
|
||||||
import Logger from './logger/logger';
|
|
||||||
import { PluginType } from './service/enums';
|
import { PluginType } from './service/enums';
|
||||||
import { isPlugin } from './service/utils/pluginUtils';
|
import { isPlugin } from './service/utils/pluginUtils';
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import assert from 'assert';
|
|||||||
import * as utils from '@umijs/utils';
|
import * as utils from '@umijs/utils';
|
||||||
import { isValidPlugin, pathToObj } from './utils/pluginUtils';
|
import { isValidPlugin, pathToObj } from './utils/pluginUtils';
|
||||||
import { EnableBy, PluginType, ServiceStage } from './enums';
|
import { EnableBy, PluginType, ServiceStage } from './enums';
|
||||||
import Logger from '../logger/logger';
|
import Logger from '../logger';
|
||||||
// TODO
|
// TODO
|
||||||
// 标准化 logger
|
// 标准化 logger
|
||||||
export default class PluginAPI {
|
export default class PluginAPI {
|
||||||
|
@ -5,7 +5,7 @@ const resolveCwd = require('resolve-cwd');
|
|||||||
const { name, bin } = require('../package.json');
|
const { name, bin } = require('../package.json');
|
||||||
|
|
||||||
const localCLI = resolveCwd.silent(`${name}/${bin.fes}`);
|
const localCLI = resolveCwd.silent(`${name}/${bin.fes}`);
|
||||||
if (!process.env.USE_GLOBAL_UMI && localCLI && localCLI !== __filename) {
|
if (!process.env.USE_GLOBAL_FES && localCLI && localCLI !== __filename) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
require(localCLI);
|
require(localCLI);
|
||||||
} else {
|
} else {
|
||||||
|
@ -6,7 +6,6 @@ class Service extends CoreService {
|
|||||||
constructor(opts) {
|
constructor(opts) {
|
||||||
process.env.FES_VERSION = require('../package').version;
|
process.env.FES_VERSION = require('../package').version;
|
||||||
process.env.FES_DIR = dirname(require.resolve('../package'));
|
process.env.FES_DIR = dirname(require.resolve('../package'));
|
||||||
process.env.UMI_DIR = dirname(require.resolve('../package'));
|
|
||||||
|
|
||||||
super({
|
super({
|
||||||
...opts,
|
...opts,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user