feat: 更改npm包名

This commit is contained in:
bac-joker 2021-03-05 17:03:04 +08:00
parent 811a94f71b
commit ea1fca1a77
46 changed files with 1400 additions and 1344 deletions

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="onepiece"> <div class="onepiece">
fes & 拉夫德鲁 <br /> 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-if="loading" class="loading">loading</div>
<div v-else class="data">{{data}}</div> <div v-else class="data">{{data}}</div>
</div> </div>
@ -14,7 +14,7 @@
</config> </config>
<script> <script>
import { ref, onMounted } from 'vue'; import { ref, onMounted } from 'vue';
import { useRouter, useRequest } from '@webank/fes'; import { useRouter, useRequest } from '@fesjs/fes';
export default { export default {
setup() { setup() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -494,7 +494,7 @@ export default class Service extends EventEmitter {
const command = new Command(); const command = new Command();
command command
.usage('<command> [options]') .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('一个好用的前端应用解决方案')); .description(chalk.cyan('一个好用的前端应用解决方案'));
return command; return command;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
import assert from 'assert'; import assert from 'assert';
import { join } from 'path'; import { join } from 'path';
import { existsSync } from 'fs'; 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 { options as CliOptions } from 'jest-cli/build/cli/args';
import createDefaultConfig from './createDefaultConfig'; import createDefaultConfig from './createDefaultConfig';

View File

@ -1,7 +1,7 @@
{ {
"name": "@webank/fes-plugin-layout", "name": "@fesjs/plugin-layout",
"version": "2.0.0-rc.0", "version": "2.0.0-rc.0",
"description": "@webank/fes-plugin-layout", "description": "@fesjs/plugin-layout",
"main": "lib/index.js", "main": "lib/index.js",
"files": [ "files": [
"lib" "lib"
@ -31,8 +31,8 @@
}, },
"peerDependencies": { "peerDependencies": {
"@ant-design/icons-vue": "^5.1.6", "@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", "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(() => { api.onGenerateFiles(() => {
const { name } = api.pkg; const { name } = api.pkg;
const HAS_LOCALE = api.hasPlugins(['@webank/fes-plugin-locale']); const HAS_LOCALE = api.hasPlugins(['@fesjs/plugin-locale']);
// .fes配置 // .fes配置
const userConfig = { const userConfig = {

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
{ {
"name": "@webank/fes-preset-built-in", "name": "@fesjs/preset-built-in",
"version": "2.0.0-rc.0", "version": "2.0.0-rc.0",
"description": "@webank/fes-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",
"files": [ "files": [
@ -36,7 +36,7 @@
"@umijs/utils": "3.3.3", "@umijs/utils": "3.3.3",
"@vue/babel-plugin-jsx": "^1.0.2", "@vue/babel-plugin-jsx": "^1.0.2",
"@vue/compiler-sfc": "^3.0.4", "@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", "autoprefixer": "^10.2.4",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"babel-plugin-import": "1.13.3", "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'); const logger = new Logger('fes:plugin-built-in');

View File

@ -1,7 +1,7 @@
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';
import { isPluginOrPreset, PluginType } from '@webank/fes-compiler'; import { isPluginOrPreset, PluginType } from '@fesjs/compiler';
function getPlugins(opts) { function getPlugins(opts) {
return Object.keys({ return Object.keys({

View File

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

View File

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

View File

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

View File

@ -2,5 +2,5 @@ import { winPath } from '@umijs/utils';
import { dirname } from 'path'; import { dirname } from 'path';
export const runtimePath = winPath( 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", "name": "@fesjs/runtime",
"version": "2.0.0-rc.0", "version": "2.0.0-rc.0",
"description": "@webank/fes-runtime", "description": "@fesjs/runtime",
"main": "dist/index.js", "main": "dist/index.js",
"files": [ "files": [
"dist" "dist"
@ -25,7 +25,7 @@
"access": "public" "access": "public"
}, },
"peerDependencies": { "peerDependencies": {
"vue": "3.0.5" "vue": "^3.0.5"
}, },
"dependencies": { "dependencies": {
"vue-router": "^4.0.1" "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", "version": "2.0.0-alpha.1",
"description": "fes 移动端项目模版", "description": "fes 移动端项目模版",
"scripts": { "scripts": {
@ -44,10 +44,10 @@
"postcss-px-to-viewport": "1.1.1" "postcss-px-to-viewport": "1.1.1"
}, },
"dependencies": { "dependencies": {
"@webank/fes": "^2.0.0-alpha.0", "@fesjs/fes": "^2.0.0-rc.0",
"@webank/fes-plugin-icon": "^2.0.0-alpha.0", "@fesjs/plugin-icon": "^2.0.0-rc.0",
"@webank/fes-plugin-request": "^2.0.0-alpha.0", "@fesjs/plugin-request": "^2.0.0-rc.0",
"vue": "3.0.5" "vue": "^3.0.5"
}, },
"private": true "private": true
} }

View File

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

View File

@ -1,5 +1,5 @@
{ {
"name": "@webank/fes-template", "name": "@fesjs/template",
"version": "2.0.0-alpha.1", "version": "2.0.0-alpha.1",
"description": "fes项目模版", "description": "fes项目模版",
"scripts": { "scripts": {
@ -46,17 +46,17 @@
"@webank/eslint-config-webank": "0.2.10" "@webank/eslint-config-webank": "0.2.10"
}, },
"dependencies": { "dependencies": {
"@webank/fes": "^2.0.0-alpha.0", "@fesjs/fes": "^2.0.0-rc.0",
"@webank/fes-plugin-access": "^2.0.0-alpha.0", "@fesjs/plugin-access": "^2.0.0-rc.0",
"@webank/fes-plugin-layout": "^2.0.0-alpha.0", "@fesjs/plugin-layout": "^2.0.0-rc.0",
"@webank/fes-plugin-locale": "^2.0.0-alpha.0", "@fesjs/plugin-locale": "^2.0.0-rc.0",
"@webank/fes-plugin-model": "^2.0.0-alpha.0", "@fesjs/plugin-model": "^2.0.0-rc.0",
"@webank/fes-plugin-enums": "^2.0.0-alpha.0", "@fesjs/plugin-enums": "^2.0.0-rc.0",
"@webank/fes-plugin-jest": "^2.0.0-alpha.8", "@fesjs/plugin-jest": "^2.0.0-alpha.8",
"@webank/fes-plugin-vuex": "^2.0.0-alpha.8", "@fesjs/plugin-vuex": "^2.0.0-alpha.8",
"@webank/fes-plugin-request": "^2.0.0-alpha.8", "@fesjs/plugin-request": "^2.0.0-alpha.8",
"ant-design-vue": "2.0.0", "ant-design-vue": "2.0.0",
"vue": "3.0.5", "vue": "^3.0.5",
"vuex": "^4.0.0" "vuex": "^4.0.0"
}, },
"private": true "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 PageLoading from '@/components/PageLoading';
import UserCenter from '@/components/UserCenter'; import UserCenter from '@/components/UserCenter';

View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@
<script> <script>
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import { useStore } from 'vuex'; 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 { export default {
setup() { setup() {

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{ {
"name": "@webank/fes", "name": "@fesjs/fes",
"version": "2.0.0-rc.0", "version": "2.0.0-rc.0",
"description": "一个好用的前端管理台快速开发框架", "description": "一个好用的前端管理台快速开发框架",
"preferGlobal": true, "preferGlobal": true,
@ -40,9 +40,9 @@
], ],
"dependencies": { "dependencies": {
"@umijs/utils": "3.3.3", "@umijs/utils": "3.3.3",
"@webank/fes-compiler": "^2.0.0-rc.0", "@fesjs/compiler": "^2.0.0-rc.0",
"@webank/fes-preset-built-in": "^2.0.0-rc.0", "@fesjs/preset-built-in": "^2.0.0-rc.0",
"@webank/fes-runtime": "^2.0.0-rc.0", "@fesjs/runtime": "^2.0.0-rc.0",
"resolve-cwd": "^3.0.0" "resolve-cwd": "^3.0.0"
}, },
"engines": { "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] // process.argv: [node, fes.js, command, args]
const rawArgv = process.argv.slice(2); const rawArgv = process.argv.slice(2);

View File

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

2515
yarn.lock

File diff suppressed because it is too large Load Diff