This commit is contained in:
万纯 2021-03-11 11:52:55 +08:00
commit 9f66570420
25 changed files with 80 additions and 18 deletions

View File

@ -1,5 +1,5 @@
{
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"changelog": {
"repo": "WeBankFinTech/fes.js",
"cacheDir": ".changelog",

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/create-fes-app",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "create a app base on fes.js",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/compiler",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/compiler",
"main": "lib/index.js",
"files": [

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { existsSync } from 'fs';
import { extname, join } from 'path';
import {

View File

@ -1,3 +1,7 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import Config from './config';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import {
createDebug,
chalk

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { join } from 'path';
import { existsSync, statSync } from 'fs';
import { lodash, winPath } from '@umijs/utils';

View File

@ -1,3 +1,7 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { join } from 'path';
import { EventEmitter } from 'events';
import assert from 'assert';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import assert from 'assert';
import * as utils from '@umijs/utils';
import { isValidPlugin, pathToObj } from './utils/pluginUtils';

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-jest",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/plugin-jest",
"main": "lib/index.js",
"files": [
@ -31,7 +31,7 @@
},
"dependencies": {
"@babel/core": "7.11.6",
"@fesjs/compiler": "^2.0.0-rc.3",
"@fesjs/compiler": "^2.0.0-rc.4",
"@umijs/babel-preset-umi": "3.2.24",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.6.3",

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-layout",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/plugin-layout",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-locale",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/plugin-locale",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-request",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/plugin-request",
"main": "lib/index.js",
"files": [

View File

@ -3,9 +3,9 @@ import { checkHttpRequestHasBody, trimObj } from './helpers';
export default async (ctx, next) => {
const config = ctx.config;
if (checkHttpRequestHasBody(config.method)) {
config.data = trimObj(config.data);
trimObj(config.data);
} else {
config.params = trimObj(config.params);
trimObj(config.params);
}
await next();
};

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-vuex",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/plugin-vuex",
"main": "lib/index.js",
"files": [

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/preset-built-in",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "@fesjs/preset-built-in",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@ -32,7 +32,7 @@
"@babel/plugin-proposal-pipeline-operator": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@fesjs/compiler": "^2.0.0-rc.3",
"@fesjs/compiler": "^2.0.0-rc.4",
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@umijs/utils": "3.3.3",
"@vue/babel-plugin-jsx": "^1.0.2",

View File

@ -1,3 +1,7 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/build/build.ts
*/
import { Logger } from '@fesjs/compiler';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/buildDevUtils.ts
*/
import { join, resolve } from 'path';
import { existsSync, readdirSync, readFileSync } from 'fs';
import { rimraf, chalk } from '@umijs/utils';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/dev/dev.ts
*/
const assert = require('assert');
export default (api) => {

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/dev/watchPkg.ts
*/
import { join } from 'path';
import { chokidar, winPath, lodash } from '@umijs/utils';
import { existsSync, readFileSync } from 'fs';

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/runtime",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.4",
"description": "@fesjs/runtime",
"main": "dist/index.js",
"files": [

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/runtime/src/Plugin/Plugin.ts
*/
import { assert } from '../utils';
function _compose({ fns, args }) {

View File

@ -1,6 +1,6 @@
{
"name": "@fesjs/fes",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "一个好用的前端管理台快速开发框架",
"preferGlobal": true,
"scripts": {
@ -39,9 +39,9 @@
"strong"
],
"dependencies": {
"@fesjs/compiler": "^2.0.0-rc.3",
"@fesjs/preset-built-in": "^2.0.0-rc.3",
"@fesjs/runtime": "^2.0.0-rc.1",
"@fesjs/compiler": "^2.0.0-rc.4",
"@fesjs/preset-built-in": "^2.0.0-rc.4",
"@fesjs/runtime": "^2.0.0-rc.4",
"@umijs/utils": "3.3.3",
"resolve-cwd": "^3.0.0"
},

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/umi/src/forkedDev.ts
*/
import { chalk, yParser } from '@umijs/utils';
import { Service } from './serviceWithBuiltIn';
import getCwd from './utils/getCwd';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/umi/src/ServiceWithBuiltIn.ts
*/
import { dirname } from 'path';
import { Service as CoreService } from '@fesjs/compiler';