Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/pr-spelling.template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: pr-spell-check
on: [pull_request]

jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
with:
config: .github/workflows/typos-config.toml
1 change: 1 addition & 0 deletions .github/workflows/typos-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default.check-filename = true
2 changes: 1 addition & 1 deletion src/core/core-options/CoreOptionsFilterForReact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CoreOptionsFilterForReact extends CoreOptionsFilterForVue2 {
const delPath = path.join(`${process.env.PWD}/${options.name}`, `./src/pages/${this.firstUpperCase(needToExcludeItem.name)}`);
await deleteAsync(delPath);
// console.log('delPath==', delPath);
// 2.删除目录,还要删moudles模块内路由
// 2.删除目录,还要删modules模块内路由
const delPathFile = path.join(`${process.env.PWD}/${options.name}`, `./src/router/modules/${needToExcludeItem.name}.ts`);
await deleteAsync(delPathFile);
// console.log('delPathFile==', delPathFile);
Expand Down
12 changes: 6 additions & 6 deletions src/core/core-options/CoreOptionsFilterForVue2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const formIconFlagRestore = 'icon: "FormIcon"';
const detailIconFlag = new RegExp(/icon: DetailIcon/gi);
const detailIconFlagRestore = 'icon: "DetailIcon"';

// layout falg
// layout flag
const layoutFlag = new RegExp(/component: Layout/gi);
const layoutFlagRestore = 'component: "Layout"';

Expand Down Expand Up @@ -61,7 +61,7 @@ const formIconFlagRestoreBack = 'icon: FormIcon';
const detailIconFlagBack = new RegExp(/icon: "DetailIcon"/gi);
const detailIconFlagRestoreBack = 'icon: DetailIcon';

// layout falg
// layout flag
const layoutFlagBack = new RegExp(/component: "Layout"/gi);
const layoutFlagRestoreBack = 'component: Layout';

Expand Down Expand Up @@ -261,7 +261,7 @@ export class CoreOptionsFilterForVue2 implements IOptionsFilter {
// console.log('保留的目录==', deletedTypeList);

// 依据原始配置移除需要排除的目录
await this.excludeSouceDeleteFolder(deletedTypeList, options, finalOptions);
await this.excludeSourceDeleteFolder(deletedTypeList, options, finalOptions);

// 生成排除后的路由配置
const saveedList = await this.generateExcludeRouter(deletedTypeList, sourceModulesData, options, finalOptions);
Expand Down Expand Up @@ -306,16 +306,16 @@ export class CoreOptionsFilterForVue2 implements IOptionsFilter {
*
* @memberOf CoreOptionsFilter
*/
protected async excludeSouceDeleteFolder(keepedTypeList: Array<IParsedSourceData>, options: any, finalOptions: any) {
protected async excludeSourceDeleteFolder(keepedTypeList: Array<IParsedSourceData>, options: any, finalOptions: any) {
for (const iterator of keepedTypeList) {
const element: IParsedSourceData = iterator;
const elementPath = `${process.env.PWD}/${options.name}/src/pages`;
const delPath = path.join(elementPath, element.path || '');
try {
await deleteAsync(delPath);
console.log('excludeSouceDeleteFolder delPath==', delPath);
console.log('excludeSourceDeleteFolder delPath==', delPath);
} catch (error) {
console.log('excludeSouceDeleteFolder..', error);
console.log('excludeSourceDeleteFolder..', error);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/farm/react-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/farm/vue-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/farm/vue-next-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/vite/react-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/vite/vue-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/vite/vue-next-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/webpack/react-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/webpack/vue-lite/README copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/webpack/vue-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-vue/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-vue.svg?sanitize=true" alt="License">
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/webpack/vue-next-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>

<p align="center">
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatility"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@farmfe/core.svg" alt="node compatibility"></a>
<a href="https://github.com/Tencent/tdesign-react-starter/blob/develop/LICENSE">
<img src="https://img.shields.io/npm/l/tdesign-react.svg?sanitize=true" alt="License">
</a>
Expand Down