This commit is contained in:
万纯 2021-03-05 19:01:57 +08:00
commit 1d182a9d3e
48 changed files with 861 additions and 1509 deletions

View File

@ -31,7 +31,27 @@ export default {
- 详情:
设置路由前缀,通常用于部署到非根目录。比如你有路由 `/pageA`、`/pageB`,然后设置了 `base``/manage/`,那么就可以通过 `/manage/pageA`、`/manage/pageB` 访问到它们。
## chainWebpack
- 类型:`function`
- 默认值:`null`
- 详情:
通过 [webpack-chain](https://github.com/neutrinojs/webpack-chain) 的 API 修改 webpack 配置。
示例:
```js
export default {
chainWebpack(memo, { env, webpack }) {
// 删除 fes 内置插件
memo.plugins.delete('copy');
},
}
```
## cssLoader
- 类型: `object`
@ -99,6 +119,31 @@ export default {
用户配置 sourcemap 类型。详见 [ webpack#devtool 配置](https://webpack.js.org/configuration/devtool/#devtool)。
## dynamicImport
- 类型: `boolean`
- 默认值: false
- 详情:
路由是否按需加载
## externals
- 类型:`object`
- 默认值:`{}`
- 详情:
设置哪些模块可以不被打包,通过 `<script>` 或其他方式引入。
示例:
```js
export default {
externals: {
vue: 'window.Vue',
},
}
```
## extraPostCSSPlugins
- 类型: `array`
@ -155,17 +200,10 @@ export default {
## nodeModulesTransform
- 类型: `object`
- 默认值: `{ type: 'all' }`
- 默认值: `{ exclude: [] }`
- 详情:
设置 node_modules 目录下依赖文件的编译方式。子配置项包含:
- `type`,编译模式类型,可选 `all``none`
- 默认值是 `all`,全部编译,然后可以通过 `exclude` 忽略不需要编译的依赖库。
- 当切换为 `none`,默认值编译 [es5-imcompatible-versions](https://github.com/umijs/es5-imcompatible-versions) 里声明的依赖,可通过 `exclude` 配置添加额外需要编译的。
- `exclude`,忽略的依赖库,包名,暂不支持绝对路径。
前者速度较慢,但可规避常见的兼容性等问题,后者反之。
默认编译所有 `node_modules` 下的包,可以通过配置 `exclude` 来跳过某些包,以提高编译速度。
## outputPath
@ -179,6 +217,30 @@ export default {
不允许设定为 `src`、`public`、`pages` 等约定目录。
:::
## plugins
- 类型: `Array(string)`
- 默认值: `[]`
- 详情:
配置额外的 `fes` 插件。
数组项为指向插件的路径,可以是 npm 依赖、相对路径或绝对路径。如果是相对路径,则会从项目根目录开始找。
- 示例:
```js
export default {
plugins: [
// npm 依赖
'fes-plugin-hello',
// 相对路径
'./plugin',
// 绝对路径
`${__dirname}/plugin.js`,
],
};
```
## postcssLoader
- 类型: `object`
@ -274,11 +336,4 @@ const defaultTerserOptions = {
```
- 详情:
配置 [压缩器 terser 的配置项](https://github.com/terser/terser#minify-options)。
## title
- 类型: `string`
- 默认值: `''`
- 详情:
配置标题。
配置 [压缩器 terser 的配置项](https://github.com/terser/terser#minify-options)

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{
"name": "@webank/fes-template-h5",
"name": "@fesjs/template-h5",
"version": "2.0.0-alpha",
"description": "fes 移动端项目模版",
"scripts": {
@ -44,10 +44,10 @@
"postcss-px-to-viewport": "1.1.1"
},
"dependencies": {
"@webank/fes": "^2.0.0-rc.0",
"@webank/fes-plugin-icon": "^2.0.0-rc.0",
"@webank/fes-plugin-request": "^2.0.0-rc.0",
"vue": "3.0.5"
"@fesjs/fes": "^2.0.0-rc.0",
"@fesjs/plugin-icon": "^2.0.0-rc.0",
"@fesjs/plugin-request": "^2.0.0-rc.0",
"vue": "^3.0.5"
},
"private": true
}

View File

@ -1,7 +1,7 @@
<template>
<div class="onepiece">
fes & 拉夫德鲁 <br />
<fes-icon @click="clickIcon" :spin="true" class="one-icon" type="smile" />
<fes-icon :spin="true" class="one-icon" type="smile" @click="clickIcon" />
<div v-if="loading" class="loading">loading</div>
<div v-else class="data">{{data}}</div>
</div>
@ -14,7 +14,7 @@
</config>
<script>
import { ref, onMounted } from 'vue';
import { useRouter, useRequest } from '@webank/fes';
import { useRouter, useRequest } from '@fesjs/fes';
export default {
setup() {

View File

@ -1,5 +1,5 @@
{
"name": "@webank/fes-template",
"name": "@fesjs/template",
"version": "2.0.0-alpha",
"description": "fes项目模版",
"scripts": {
@ -46,16 +46,16 @@
"@webank/eslint-config-webank": "0.2.10"
},
"dependencies": {
"@webank/fes": "^2.0.0-rc.0",
"@webank/fes-plugin-access": "^2.0.0-rc.0",
"@webank/fes-plugin-layout": "^2.0.0-rc.0",
"@webank/fes-plugin-locale": "^2.0.0-rc.0",
"@webank/fes-plugin-model": "^2.0.0-rc.0",
"@webank/fes-plugin-enums": "^2.0.0-rc.0",
"@webank/fes-plugin-jest": "^2.0.0-rc.0",
"@webank/fes-plugin-vuex": "^2.0.0-rc.0",
"@fesjs/fes": "^2.0.0-rc.0",
"@fesjs/plugin-access": "^2.0.0-rc.0",
"@fesjs/plugin-layout": "^2.0.0-rc.0",
"@fesjs/plugin-locale": "^2.0.0-rc.0",
"@fesjs/plugin-model": "^2.0.0-rc.0",
"@fesjs/plugin-enums": "^2.0.0-rc.0",
"@fesjs/plugin-jest": "^2.0.0-rc.0",
"@fesjs/plugin-vuex": "^2.0.0-rc.0",
"ant-design-vue": "2.0.0",
"vue": "3.0.5",
"vue": "^3.0.5",
"vuex": "^4.0.0"
},
"private": true

View File

@ -1,6 +1,6 @@
import { access } from '@webank/fes';
import { access } from '@fesjs/fes';
import PageLoading from '@/components/PageLoading';
import UserCenter from '@/components/UserCenter';

View File

@ -1,4 +1,4 @@
import { requestWrap } from '@webank/fes';
import { requestWrap } from '@fesjs/fes';
// TODO
// 响应体控制

View File

@ -2,7 +2,7 @@
<div>{{initialState.userName}}</div>
</template>
<script>
import { useModel } from '@webank/fes';
import { useModel } from '@fesjs/fes';
export default {
setup() {

View File

@ -22,8 +22,8 @@
import { ref, onMounted, computed } from 'vue';
import { useStore } from 'vuex';
import {
access, useAccess, useRouter, useI18n, locale, enums
} from '@webank/fes';
useAccess, useRouter, useI18n, locale, enums
} from '@fesjs/fes';
export default {
setup() {

View File

@ -2,7 +2,7 @@
<div>test</div>
</template>
<script>
import { } from '@webank/fes';
import { } from '@fesjs/fes';
export default {

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-compiler",
"version": "2.0.0-rc.0",
"description": "@webank/fes-compiler",
"name": "@fesjs/compiler",
"version": "2.0.0-rc.1",
"description": "@fesjs/compiler",
"main": "lib/index.js",
"files": [
"lib"

View File

@ -494,7 +494,7 @@ export default class Service extends EventEmitter {
const command = new Command();
command
.usage('<command> [options]')
.version(`@webank/fes ${this.fesPkg.version}`, '-v, --vers', 'output the current version')
.version(`@fesjs/fes ${this.fesPkg.version}`, '-v, --vers', 'output the current version')
.description(chalk.cyan('一个好用的前端应用解决方案'));
return command;
}

View File

@ -12,8 +12,8 @@ import {
import { PluginType } from '../enums';
const RE = {
[PluginType.plugin]: /^(@webank\/)?fes-plugin-/,
[PluginType.preset]: /^(@webank\/)?fes-preset-/
[PluginType.plugin]: /^(@fesjs\/)?plugin-/,
[PluginType.preset]: /^(@fesjs\/)?preset-/
};
export function isPluginOrPreset(type, name) {
@ -57,7 +57,7 @@ function nameToKey(name) {
}
function pkgNameToKey(pkgName, type) {
if (pkgName.charAt(0) === '@' && !pkgName.startsWith('@webank/')) {
if (pkgName.charAt(0) === '@' && !pkgName.startsWith('@fesjs/')) {
pkgName = pkgName.split('/')[1];
}
return nameToKey(pkgName.replace(RE[type], ''));
@ -84,7 +84,7 @@ export function pathToObj({ path, type, cwd }) {
} else {
id = winPath(path);
}
id = id.replace('@webank/fes-preset-built-in/lib/plugins', '@@');
id = id.replace('@fesjs/preset-built-in/lib/plugins', '@@');
id = id.replace(/\.js$/, '');
const key = isPkgPlugin

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-access",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-access",
"name": "@fesjs/plugin-access",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-access",
"main": "lib/index.js",
"files": [
"lib"
@ -27,7 +27,7 @@
"access": "public"
},
"peerDependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"vue": "3.0.5"
"@fesjs/fes": "^2.0.0-rc.0",
"vue": "^3.0.5"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-enums",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-enums",
"name": "@fesjs/plugin-enums",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-enums",
"main": "lib/index.js",
"files": [
"lib"
@ -27,7 +27,7 @@
"access": "public"
},
"peerDependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"vue": "3.0.5"
"@fesjs/fes": "^2.0.0-rc.0",
"vue": "^3.0.5"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-icon",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-icon",
"name": "@fesjs/plugin-icon",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-icon",
"main": "lib/index.js",
"files": [
"lib"
@ -27,7 +27,7 @@
"access": "public"
},
"peerDependencies": {
"vue": "3.0.5"
"vue": "^3.0.5"
},
"dependencies": {
"svgo": "1.3.2"

View File

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

View File

@ -2,7 +2,7 @@
import assert from 'assert';
import { join } from 'path';
import { existsSync } from 'fs';
import { Logger } from '@webank/fes-compiler';
import { Logger } from '@fesjs/compiler';
import { options as CliOptions } from 'jest-cli/build/cli/args';
import createDefaultConfig from './createDefaultConfig';

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-layout",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-layout",
"name": "@fesjs/plugin-layout",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-layout",
"main": "lib/index.js",
"files": [
"lib"
@ -31,8 +31,8 @@
},
"peerDependencies": {
"@ant-design/icons-vue": "^5.1.6",
"@webank/fes": "^2.0.0-alpha.0",
"@fesjs/fes": "^2.0.0-rc.0",
"ant-design-vue": "2.0.0",
"vue": "3.0.5"
"vue": "^3.0.5"
}
}

View File

@ -28,7 +28,7 @@ export default (api) => {
api.onGenerateFiles(() => {
const { name } = api.pkg;
const HAS_LOCALE = api.hasPlugins(['@webank/fes-plugin-locale']);
const HAS_LOCALE = api.hasPlugins(['@fesjs/plugin-locale']);
// .fes配置
const userConfig = {

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-locale",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-locale",
"name": "@fesjs/plugin-locale",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-locale",
"main": "lib/index.js",
"files": [
"lib"
@ -28,12 +28,12 @@
},
"dependencies": {
"@umijs/utils": "3.3.3",
"vue-i18n": "^9.0.0-rc.8"
"vue-i18n": "^9.0.0"
},
"peerDependencies": {
"@ant-design/icons-vue": "^5.1.6",
"@webank/fes": "^2.0.0-alpha.0",
"@fesjs/fes": "^2.0.0-rc.0",
"ant-design-vue": "2.0.0",
"vue": "3.0.5"
"vue": "^3.0.5"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-model",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-model",
"name": "@fesjs/plugin-model",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-model",
"main": "lib/index.js",
"files": [
"lib"
@ -30,7 +30,7 @@
"@umijs/utils": "3.3.3"
},
"peerDependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"vue": "3.0.5"
"@fesjs/fes": "^2.0.0-rc.0",
"vue": "^3.0.5"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-request",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-request",
"name": "@fesjs/plugin-request",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-request",
"main": "lib/index.js",
"files": [
"lib"
@ -27,8 +27,8 @@
"access": "public"
},
"peerDependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"vue": "3.0.5"
"@fesjs/fes": "^2.0.0-rc.0",
"vue": "^3.0.5"
},
"dependencies": {
"axios": "0.21.1"

View File

@ -1,5 +1,5 @@
import axios from 'axios';
import { ApplyPluginsType, plugin } from '@webank/fes';
import { ApplyPluginsType, plugin } from '@fesjs/fes';
import { ref } from 'vue';
import scheduler from './scheduler';
import {

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-plugin-vuex",
"version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-vuex",
"name": "@fesjs/plugin-vuex",
"version": "2.0.0-rc.1",
"description": "@fesjs/plugin-vuex",
"main": "lib/index.js",
"files": [
"lib"
@ -30,8 +30,8 @@
"@umijs/utils": "3.3.3"
},
"peerDependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"vue": "3.0.5",
"@fesjs/fes": "^2.0.0-rc.0",
"vue": "^3.0.5",
"vuex": "^4.0.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-preset-built-in",
"version": "2.0.0-rc.0",
"description": "@webank/fes-preset-built-in",
"name": "@fesjs/preset-built-in",
"version": "2.0.0-rc.1",
"description": "@fesjs/preset-built-in",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
@ -32,11 +32,11 @@
"@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.1",
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@umijs/utils": "3.3.3",
"@vue/babel-plugin-jsx": "^1.0.2",
"@vue/compiler-sfc": "^3.0.4",
"@webank/fes-compiler": "^2.0.0-rc.0",
"autoprefixer": "^10.2.4",
"babel-loader": "^8.2.2",
"babel-plugin-import": "1.13.3",

View File

@ -1,5 +1,5 @@
import { Logger } from '@webank/fes-compiler';
import { Logger } from '@fesjs/compiler';
const logger = new Logger('fes:plugin-built-in');

View File

@ -1,7 +1,7 @@
import { join } from 'path';
import { chokidar, winPath, lodash } from '@umijs/utils';
import { existsSync, readFileSync } from 'fs';
import { isPluginOrPreset, PluginType } from '@webank/fes-compiler';
import { isPluginOrPreset, PluginType } from '@fesjs/compiler';
function getPlugins(opts) {
return Object.keys({

View File

@ -9,8 +9,8 @@ export default function (api) {
System: ['OS', 'CPU'],
Binaries: ['Node', 'Yarn', 'npm'],
Browsers: ['Chrome', 'Edge', 'Firefox', 'Safari'],
npmPackages: ['@webank/fes', 'vue', 'vue-router'],
npmGlobalPackages: ['@webank/fes']
npmPackages: ['@fesjs/fes', 'vue', 'vue-router'],
npmGlobalPackages: ['@fesjs/fes']
},
{
showNotFound: true,

View File

@ -52,6 +52,7 @@ function getBableOpts({
];
return {
babelrc: false,
configFile: false,
cacheDirectory: process.env.BABEL_CACHE !== 'none' ? winPath(`${cwd}/.cache/babel-loader`) : false,
presets,
plugins,

View File

@ -12,6 +12,6 @@ export {
createRouter,
Plugin,
ApplyPluginsType
} from '@webank/fes-runtime';
} from '@fesjs/runtime';
CORE_EXPORTS

View File

@ -2,5 +2,5 @@ import { winPath } from '@umijs/utils';
import { dirname } from 'path';
export const runtimePath = winPath(
dirname(require.resolve('@webank/fes-runtime/package.json'))
dirname(require.resolve('@fesjs/runtime/package.json'))
);

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-runtime",
"version": "2.0.0-rc.0",
"description": "@webank/fes-runtime",
"name": "@fesjs/runtime",
"version": "2.0.0-rc.1",
"description": "@fesjs/runtime",
"main": "dist/index.js",
"files": [
"dist"
@ -25,7 +25,7 @@
"access": "public"
},
"peerDependencies": {
"vue": "3.0.5"
"vue": "^3.0.5"
},
"dependencies": {
"vue-router": "^4.0.1"

View File

@ -1,5 +1,5 @@
{
"name": "@webank/fes-template-h5",
"name": "@fesjs/template-h5",
"version": "2.0.0-alpha.1",
"description": "fes 移动端项目模版",
"scripts": {
@ -44,10 +44,10 @@
"postcss-px-to-viewport": "1.1.1"
},
"dependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"@webank/fes-plugin-icon": "^2.0.0-alpha.0",
"@webank/fes-plugin-request": "^2.0.0-alpha.0",
"vue": "3.0.5"
"@fesjs/fes": "^2.0.0-rc.0",
"@fesjs/plugin-icon": "^2.0.0-rc.0",
"@fesjs/plugin-request": "^2.0.0-rc.0",
"vue": "^3.0.5"
},
"private": true
}

View File

@ -14,7 +14,7 @@
</config>
<script>
import { ref, onMounted } from 'vue';
import { useRouter, useRequest } from '@webank/fes';
import { useRouter, useRequest } from '@fesjs/fes';
export default {
setup() {

View File

@ -1,5 +1,5 @@
{
"name": "@webank/fes-template",
"name": "@fesjs/template",
"version": "2.0.0-alpha.1",
"description": "fes项目模版",
"scripts": {
@ -46,17 +46,17 @@
"@webank/eslint-config-webank": "0.2.10"
},
"dependencies": {
"@webank/fes": "^2.0.0-alpha.0",
"@webank/fes-plugin-access": "^2.0.0-alpha.0",
"@webank/fes-plugin-layout": "^2.0.0-alpha.0",
"@webank/fes-plugin-locale": "^2.0.0-alpha.0",
"@webank/fes-plugin-model": "^2.0.0-alpha.0",
"@webank/fes-plugin-enums": "^2.0.0-alpha.0",
"@webank/fes-plugin-jest": "^2.0.0-alpha.8",
"@webank/fes-plugin-vuex": "^2.0.0-alpha.8",
"@webank/fes-plugin-request": "^2.0.0-alpha.8",
"@fesjs/fes": "^2.0.0-rc.0",
"@fesjs/plugin-access": "^2.0.0-rc.0",
"@fesjs/plugin-layout": "^2.0.0-rc.0",
"@fesjs/plugin-locale": "^2.0.0-rc.0",
"@fesjs/plugin-model": "^2.0.0-rc.0",
"@fesjs/plugin-enums": "^2.0.0-rc.0",
"@fesjs/plugin-jest": "^2.0.0-alpha.8",
"@fesjs/plugin-vuex": "^2.0.0-alpha.8",
"@fesjs/plugin-request": "^2.0.0-alpha.8",
"ant-design-vue": "2.0.0",
"vue": "3.0.5",
"vue": "^3.0.5",
"vuex": "^4.0.0"
},
"private": true

View File

@ -1,6 +1,6 @@
import { access as accessApi } from '@webank/fes';
import { access as accessApi } from '@fesjs/fes';
import PageLoading from '@/components/PageLoading';
import UserCenter from '@/components/UserCenter';

View File

@ -1,4 +1,4 @@
import { requestWrap } from '@webank/fes';
import { requestWrap } from '@fesjs/fes';
// TODO
// 响应体控制

View File

@ -2,7 +2,7 @@
<div>{{initialState.userName}}</div>
</template>
<script>
import { useModel } from '@webank/fes';
import { useModel } from '@fesjs/fes';
export default {
setup() {

View File

@ -20,8 +20,8 @@
<script>
import { ref, onMounted } from 'vue';
import {
access, useAccess, useRouter, useI18n, locale, enums, request
} from '@webank/fes';
useAccess, useRouter, useI18n, locale, enums, request
} from '@fesjs/fes';
export default {
setup() {

View File

@ -16,7 +16,7 @@
<script>
import { computed, ref } from 'vue';
import { useStore } from 'vuex';
import { MUTATION_TYPES, GETTER_TYPES, ACTION_TYPES } from '@webank/fes';
import { MUTATION_TYPES, GETTER_TYPES, ACTION_TYPES } from '@fesjs/fes';
export default {
setup() {

View File

@ -2,7 +2,7 @@
<div>test</div>
</template>
<script>
import { } from '@webank/fes';
import { } from '@fesjs/fes';
export default {

View File

@ -1,7 +1,7 @@
{
"name": "@webank/fes-utils",
"name": "@fesjs/utils",
"version": "0.0.0",
"description": "@webank/fes-utils",
"description": "@fesjs/fesjsutils",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"

View File

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

View File

@ -20,7 +20,7 @@ function checkNodeVersion(wanted, id) {
}
}
checkNodeVersion(requiredVersion, '@webank/fes');
checkNodeVersion(requiredVersion, '@fesjs/fes');
// process.argv: [node, fes.js, command, args]
const rawArgv = process.argv.slice(2);

View File

@ -1,5 +1,5 @@
import { dirname } from 'path';
import { Service as CoreService } from '@webank/fes-compiler';
import { Service as CoreService } from '@fesjs/compiler';
class Service extends CoreService {
constructor(opts) {
@ -9,7 +9,7 @@ class Service extends CoreService {
super({
...opts,
presets: [
require.resolve('@webank/fes-preset-built-in'),
require.resolve('@fesjs/preset-built-in'),
...(opts.presets || [])
],
plugins: [...(opts.plugins || [])]

2020
yarn.lock

File diff suppressed because it is too large Load Diff