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": { "changelog": {
"repo": "WeBankFinTech/fes.js", "repo": "WeBankFinTech/fes.js",
"cacheDir": ".changelog", "cacheDir": ".changelog",

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/create-fes-app", "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", "description": "create a app base on fes.js",
"main": "lib/index.js", "main": "lib/index.js",
"files": [ "files": [

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/preset-built-in", "name": "@fesjs/preset-built-in",
"version": "2.0.0-rc.3", "version": "2.0.0-rc.4",
"description": "@fesjs/preset-built-in", "description": "@fesjs/preset-built-in",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
@ -32,7 +32,7 @@
"@babel/plugin-proposal-pipeline-operator": "^7.12.13", "@babel/plugin-proposal-pipeline-operator": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.12.13", "@babel/plugin-transform-runtime": "^7.12.13",
"@babel/preset-env": "^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", "@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@umijs/utils": "3.3.3", "@umijs/utils": "3.3.3",
"@vue/babel-plugin-jsx": "^1.0.2", "@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'; 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 { join, resolve } from 'path';
import { existsSync, readdirSync, readFileSync } from 'fs'; import { existsSync, readdirSync, readFileSync } from 'fs';
import { rimraf, chalk } from '@umijs/utils'; 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'); const assert = require('assert');
export default (api) => { 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 { join } from 'path';
import { chokidar, winPath, lodash } from '@umijs/utils'; import { chokidar, winPath, lodash } from '@umijs/utils';
import { existsSync, readFileSync } from 'fs'; import { existsSync, readFileSync } from 'fs';

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/runtime", "name": "@fesjs/runtime",
"version": "2.0.0-rc.1", "version": "2.0.0-rc.4",
"description": "@fesjs/runtime", "description": "@fesjs/runtime",
"main": "dist/index.js", "main": "dist/index.js",
"files": [ "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'; import { assert } from '../utils';
function _compose({ fns, args }) { function _compose({ fns, args }) {

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/fes", "name": "@fesjs/fes",
"version": "2.0.0-rc.3", "version": "2.0.0-rc.4",
"description": "一个好用的前端管理台快速开发框架", "description": "一个好用的前端管理台快速开发框架",
"preferGlobal": true, "preferGlobal": true,
"scripts": { "scripts": {
@ -39,9 +39,9 @@
"strong" "strong"
], ],
"dependencies": { "dependencies": {
"@fesjs/compiler": "^2.0.0-rc.3", "@fesjs/compiler": "^2.0.0-rc.4",
"@fesjs/preset-built-in": "^2.0.0-rc.3", "@fesjs/preset-built-in": "^2.0.0-rc.4",
"@fesjs/runtime": "^2.0.0-rc.1", "@fesjs/runtime": "^2.0.0-rc.4",
"@umijs/utils": "3.3.3", "@umijs/utils": "3.3.3",
"resolve-cwd": "^3.0.0" "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 { chalk, yParser } from '@umijs/utils';
import { Service } from './serviceWithBuiltIn'; import { Service } from './serviceWithBuiltIn';
import getCwd from './utils/getCwd'; 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 { dirname } from 'path';
import { Service as CoreService } from '@fesjs/compiler'; import { Service as CoreService } from '@fesjs/compiler';