mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-02 11:47:47 +08:00
feat: 更改npm包名
This commit is contained in:
parent
811a94f71b
commit
ea1fca1a77
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@webank/create-fes-app",
|
||||
"name": "@fesjs/create-fes-app",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "create a app base on fes.js",
|
||||
"main": "lib/index.js",
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
import { access } from '@webank/fes';
|
||||
import { access } from '@fesjs/fes';
|
||||
import PageLoading from '@/components/PageLoading';
|
||||
import UserCenter from '@/components/UserCenter';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { requestWrap } from '@webank/fes';
|
||||
import { requestWrap } from '@fesjs/fes';
|
||||
|
||||
// TODO
|
||||
// 响应体控制
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>{{initialState.userName}}</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useModel } from '@webank/fes';
|
||||
import { useModel } from '@fesjs/fes';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
@ -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() {
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>test</div>
|
||||
</template>
|
||||
<script>
|
||||
import { } from '@webank/fes';
|
||||
import { } from '@fesjs/fes';
|
||||
|
||||
export default {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-compiler",
|
||||
"name": "@fesjs/compiler",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-compiler",
|
||||
"description": "@fesjs/compiler",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
"lib"
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-access",
|
||||
"name": "@fesjs/plugin-access",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-access",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-enums",
|
||||
"name": "@fesjs/plugin-enums",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-enums",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-icon",
|
||||
"name": "@fesjs/plugin-icon",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-icon",
|
||||
"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"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-jest",
|
||||
"name": "@fesjs/plugin-jest",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-jest",
|
||||
"description": "@fesjs/plugin-jest",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
"lib",
|
||||
@ -32,7 +32,7 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "7.11.6",
|
||||
"@umijs/babel-preset-umi": "3.2.24",
|
||||
"@webank/fes-compiler": "^2.0.0-rc.0",
|
||||
"@fesjs/compiler": "^2.0.0-rc.0",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
"core-js": "3.6.5",
|
||||
|
@ -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';
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-layout",
|
||||
"name": "@fesjs/plugin-layout",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-layout",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -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 = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-locale",
|
||||
"name": "@fesjs/plugin-locale",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-locale",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-model",
|
||||
"name": "@fesjs/plugin-model",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-model",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-request",
|
||||
"name": "@fesjs/plugin-request",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-request",
|
||||
"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"
|
||||
|
@ -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 {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-plugin-vuex",
|
||||
"name": "@fesjs/plugin-vuex",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-plugin-vuex",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-preset-built-in",
|
||||
"name": "@fesjs/preset-built-in",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-preset-built-in",
|
||||
"description": "@fesjs/preset-built-in",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"files": [
|
||||
@ -36,7 +36,7 @@
|
||||
"@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",
|
||||
"@fesjs/compiler": "^2.0.0-rc.0",
|
||||
"autoprefixer": "^10.2.4",
|
||||
"babel-loader": "^8.2.2",
|
||||
"babel-plugin-import": "1.13.3",
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import { Logger } from '@webank/fes-compiler';
|
||||
import { Logger } from '@fesjs/compiler';
|
||||
|
||||
const logger = new Logger('fes:plugin-built-in');
|
||||
|
||||
|
@ -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({
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -12,6 +12,6 @@ export {
|
||||
createRouter,
|
||||
Plugin,
|
||||
ApplyPluginsType
|
||||
} from '@webank/fes-runtime';
|
||||
} from '@fesjs/runtime';
|
||||
|
||||
CORE_EXPORTS
|
@ -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'))
|
||||
);
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@webank/fes-runtime",
|
||||
"name": "@fesjs/runtime",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "@webank/fes-runtime",
|
||||
"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"
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { requestWrap } from '@webank/fes';
|
||||
import { requestWrap } from '@fesjs/fes';
|
||||
|
||||
// TODO
|
||||
// 响应体控制
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>{{initialState.userName}}</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useModel } from '@webank/fes';
|
||||
import { useModel } from '@fesjs/fes';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>test</div>
|
||||
</template>
|
||||
<script>
|
||||
import { } from '@webank/fes';
|
||||
import { } from '@fesjs/fes';
|
||||
|
||||
export default {
|
||||
|
||||
|
@ -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"
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@webank/fes",
|
||||
"name": "@fesjs/fes",
|
||||
"version": "2.0.0-rc.0",
|
||||
"description": "一个好用的前端管理台快速开发框架",
|
||||
"preferGlobal": true,
|
||||
@ -40,9 +40,9 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@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",
|
||||
"@fesjs/compiler": "^2.0.0-rc.0",
|
||||
"@fesjs/preset-built-in": "^2.0.0-rc.0",
|
||||
"@fesjs/runtime": "^2.0.0-rc.0",
|
||||
"resolve-cwd": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -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);
|
||||
|
@ -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 || [])]
|
||||
|
Loading…
Reference in New Issue
Block a user