Skip to content

Commit

Permalink
refactor: simplify system architecture and remove obsolete packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed May 25, 2023
1 parent 09b43ac commit 74e4e38
Show file tree
Hide file tree
Showing 228 changed files with 2,616 additions and 9,277 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist
output
v2/**
*.md
*.md
cache
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@antfu"
}
2 changes: 0 additions & 2 deletions .eslintrc.js

This file was deleted.

38 changes: 19 additions & 19 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ name: A TO A:GH_PAGES
on:
push:
paths:
- 'packages/**'
- '.github/workflows/docs.yml'
- 'package.json'
- 'pnpm-lock'
- 'pnpm-workspace.yaml'
- 'packages/**'
- .github/workflows/docs.yml
- package.json
- pnpm-lock
- pnpm-workspace.yaml
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Checkout
uses: actions/checkout@master

- name: Build and Deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# 你要操作的目标仓库
TARGET_REPO: TuiMao233/hairylib
# 构建结果存储的分支
TARGET_BRANCH: gh_pages
# 要使用的构建命令
BUILD_SCRIPT: npm i pnpm -g && pnpm i && pnpm docs:build
# 构建结果存储目录
BUILD_DIR: packages/.vitepress/dist/
- name: Build and Deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# 你要操作的目标仓库
TARGET_REPO: TuiMao233/hairylib
# 构建结果存储的分支
TARGET_BRANCH: gh_pages
# 要使用的构建命令
BUILD_SCRIPT: npm i pnpm -g && pnpm i && pnpm docs:build
# 构建结果存储目录
BUILD_DIR: packages/.vitepress/dist/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-PRESENT Mr Mao<https://github.com/TuiMao233>
Copyright (c) 2019-PRESENT Hairyf<https://github.com/hairyf>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hairylib Monorepo

<div align="center"> <img src="packages/docs__public/logo.png" > </div>
<div align="center"> <img src="packages/public/logo.png" > </div>

****

Expand All @@ -17,18 +17,18 @@ what is pnpm ?

what is turbo and changeset ?

- [changesets: 流行的 monorepo 场景发包工具](https://hairylib.com/docs/study/changesets.html)
- [turbo: Turborepo 的任务编排能力](https://zhuanlan.zhihu.com/p/468382756)

## 运行流程

## 运行流程图

> TODO
> 想了想没什么特别的,就不写了。
## 文档系统

基于 `github actions` 工作流(`.github/workflows/docs.yml`),自动部署 [hairylib.com](https://hairylib.com/)

文档构建使用 `vitepress`自动**收集 / 组合**文档,生成 `Type Declarations``side-bar`
文档构建使用 `vitepress`自动收集组合文档,生成 `Type Declarations``side-bar`

地址:https://hairylib.com/

Expand Down Expand Up @@ -83,4 +83,4 @@ module.exports = require('./scripts/rollup.config.ts').default

## License

Licensed under the [MIT License](https://opensource.org/licenses/MIT).
[MIT License](/LICENSE) Copyright (c) 2019-PRESENT.
12 changes: 0 additions & 12 deletions church/example-1/package.json

This file was deleted.

Empty file.
12 changes: 0 additions & 12 deletions church/example-1/packages/A/package.json

This file was deleted.

Empty file.
12 changes: 0 additions & 12 deletions church/example-1/packages/B/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions church/example-1/pnpm-workspace.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions church/example-2/package.json

This file was deleted.

15 changes: 0 additions & 15 deletions church/example-2/packages/A/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions church/example-2/packages/A/tsconfig.json

This file was deleted.

15 changes: 0 additions & 15 deletions church/example-2/packages/B/package.json

This file was deleted.

Empty file.
6 changes: 0 additions & 6 deletions church/example-2/packages/B/tsconfig.json

This file was deleted.

5 changes: 0 additions & 5 deletions church/example-2/pnpm-workspace.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions church/example-3/package.json

This file was deleted.

Empty file.
16 changes: 0 additions & 16 deletions church/example-3/packages/A/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions church/example-3/packages/A/tsconfig.json

This file was deleted.

16 changes: 0 additions & 16 deletions church/example-3/packages/B/package.json

This file was deleted.

Empty file.
6 changes: 0 additions & 6 deletions church/example-3/packages/B/tsconfig.json

This file was deleted.

Loading

0 comments on commit 74e4e38

Please sign in to comment.