Skip to content

Commit

Permalink
feat: 将@core文件夹重命名_core, 以便使用devtools可以正常跳转
Browse files Browse the repository at this point in the history
  • Loading branch information
1571312541 committed Oct 5, 2024
1 parent fc5d328 commit 1b87f1a
Show file tree
Hide file tree
Showing 467 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/.github/ anncwb@126.com vince292007@gmail.com
/.vscode/ anncwb@126.com vince292007@gmail.com
/packages/ anncwb@126.com vince292007@gmail.com
/packages/@core/ anncwb@126.com vince292007@gmail.com
/packages/_core/ anncwb@126.com vince292007@gmail.com
/internal/ anncwb@126.com vince292007@gmail.com
/scripts/ anncwb@126.com vince292007@gmail.com

Expand Down
2 changes: 1 addition & 1 deletion docs/src/en/guide/other/project-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Because the project is a complete project template, not a plugin or a package, i

## What Should I Do

The project is managed using a `Monorepo` approach and has abstracted some of the more core code, such as `packages/@core`, `packages/effects`. As long as the business code has not modified this part of the code, you can directly pull the latest code and then merge it into your branch. You only need to handle some conflicts simply. Other folders will only make some minor adjustments, which will not affect the business code.
The project is managed using a `Monorepo` approach and has abstracted some of the more core code, such as `packages/_core`, `packages/effects`. As long as the business code has not modified this part of the code, you can directly pull the latest code and then merge it into your branch. You only need to handle some conflicts simply. Other folders will only make some minor adjustments, which will not affect the business code.

::: tip Recommendation

Expand Down
2 changes: 1 addition & 1 deletion docs/src/en/guide/project/dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The directory uses Monorepo management, and the project structure is as follows:
│   └── vite-config # Common Vite configuration
├── package.json # Project dependency configuration
├── packages # Project packages directory
│   ├── @core # Core package
│   ├── _core # Core package
│   │   ├── base # Base package
│   │   │   ├── design # Design related
│   │   │   ├── icons # Icons
Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/other/project-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## 我需要怎么做

项目采用了 `Monorepo` 的方式进行管理,并将一些比较核心的代码进行了抽离,比如 `packages/@core``packages/effects`,只要业务代码没有修改这部分代码,那么你可以直接拉取最新代码,然后合并到你的分支上,只需要简单的处理部分冲突即可。其余文件夹只会进行一些小的调整,不会对业务代码产生影响。
项目采用了 `Monorepo` 的方式进行管理,并将一些比较核心的代码进行了抽离,比如 `packages/_core``packages/effects`,只要业务代码没有修改这部分代码,那么你可以直接拉取最新代码,然后合并到你的分支上,只需要简单的处理部分冲突即可。其余文件夹只会进行一些小的调整,不会对业务代码产生影响。

::: tip 推荐

Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/project/dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
│   └── vite-config # 通用Vite 配置
├── package.json # 项目依赖配置
├── packages # 项目包目录
│   ├── @core # 核心包
│   ├── _core # 核心包
│   │   ├── base # 基础包
│   │   │   ├── design # 设计相关
│   │   │   ├── icons # 图标
Expand Down
24 changes: 12 additions & 12 deletions internal/lint-configs/eslint-config/src/custom-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const restrictedImportIgnores = [
const customConfig: Linter.Config[] = [
// shadcn-ui 内部组件是自动生成的,不做太多限制
{
files: ['packages/@core/ui-kit/shadcn-ui/**/**'],
files: ['packages/_core/ui-kit/shadcn-ui/**/**'],
rules: {
'vue/require-default-prop': 'off',
},
Expand Down Expand Up @@ -40,22 +40,22 @@ const customConfig: Linter.Config[] = [
{
group: ['#/api/*'],
message:
'The #/api package cannot be imported, please use the @core package itself',
'The #/api package cannot be imported, please use the _core package itself',
},
{
group: ['#/layouts/*'],
message:
'The #/layouts package cannot be imported, please use the @core package itself',
'The #/layouts package cannot be imported, please use the _core package itself',
},
{
group: ['#/locales/*'],
message:
'The #/locales package cannot be imported, please use the @core package itself',
'The #/locales package cannot be imported, please use the _core package itself',
},
{
group: ['#/stores/*'],
message:
'The #/stores package cannot be imported, please use the @core package itself',
'The #/stores package cannot be imported, please use the _core package itself',
},
],
},
Expand All @@ -64,8 +64,8 @@ const customConfig: Linter.Config[] = [
},
},
{
// @core内部组件,不能引入@vben/* 里面的包
files: ['packages/@core/**/**'],
// _core内部组件,不能引入@vben/* 里面的包
files: ['packages/_core/**/**'],
ignores: restrictedImportIgnores,
rules: {
'no-restricted-imports': [
Expand All @@ -75,16 +75,16 @@ const customConfig: Linter.Config[] = [
{
group: ['@vben/*'],
message:
'The @core package cannot import the @vben package, please use the @core package itself',
'The _core package cannot import the @vben package, please use the _core package itself',
},
],
},
],
},
},
{
// @core/shared内部组件,不能引入@vben/* 或者 @vben-core/* 里面的包
files: ['packages/@core/base/**/**'],
// _core/shared内部组件,不能引入@vben/* 或者 @vben-core/* 里面的包
files: ['packages/_core/base/**/**'],
ignores: restrictedImportIgnores,
rules: {
'no-restricted-imports': [
Expand All @@ -94,7 +94,7 @@ const customConfig: Linter.Config[] = [
{
group: ['@vben/*', '@vben-core/*'],
message:
'The @vben-core/shared package cannot import the @vben package, please use the @core/shared package itself',
'The @vben-core/shared package cannot import the @vben package, please use the _core/shared package itself',
},
],
},
Expand Down Expand Up @@ -122,7 +122,7 @@ const customConfig: Linter.Config[] = [
{
group: ['@vben/*'],
message:
'The @vben package cannot be imported, please use the @core package itself',
'The @vben package cannot be imported, please use the _core package itself',
},
],
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
"directory": "packages/@core/composables"
"directory": "packages/_core/composables"
},
"license": "MIT",
"type": "module",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
"directory": "packages/@core/preferences"
"directory": "packages/_core/preferences"
},
"license": "MIT",
"type": "module",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1b87f1a

Please sign in to comment.