[春松客服][cskefu/cskefu] #766 初始化前端工程结构及主体web应用实例 (PR #783)

Kaifuny notifications at github.com
Fri Dec 30 03:00:50 UTC 2022


## 描述
> 注意事项
> 1. 项目使用 vue3(ecosystem) + typescript + vite4 + element-plus
> 2. packages 基于 TypeScript 开发
> 3. app/web 基于 javascript为主,TypeScript为辅开发(*.js 与 *.d.ts 搭配使用)
> 4. 项目使用 pnpm workspace 管理依赖,使用 pnpm install 安装依赖

## 项目结构

```js
├── app                         
│   ├── sdkjs                   // sdk on javascript
|   |   ├── src
|   |   ├── package.json
|   |   └── README.md
│   ├── web                     // web frontend
|   |   ├── src
|   |   ├── package.json
|   |   └── README.md
├── packages
│   ├── @cskefu                 // @cskefu library
│   │   ├── cli                 // cli tool
|   |   |   ├── package.json
|   |   |   └── README.md
│   │   ├── core                // core library
|   |   |   ├── package.json
│   │   |   └── README.md
│   ├── shared                  // shared library
│   │   ├── includes            // project config
|   |   |   ├── package.json
│   │   |   └── README.md
│   │   ├── utils               // utils library
|   |   |   ├── package.json
│   │   |   └── README.md
│   │   └── README.md
│   └── ui                      // design component
|       ├── package.json
│       └── README.md
├── pnpm-workspace.yaml         // pnpm workspace config
└── README.md
```

## 如何运行

| WORKSPACE| 目录 | 说明 |
| --- | --- | --- |
| @cskefu/web | app/web | 前端业务相关主题项目 |
| @cskefu/cli | packages/@cskefu/cli | cli 工具 |
| @cskefu/core | packages/@cskefu/core | 插件及核心系统引擎 |
| @cskefu/includes | packages/shared/includes | 共享项目基础配置 |
| @cskefu/utils | packages/shared/utils | 共享公用工具包 |
| @cskefu/ui | packages/ui | 基础组件及业务组件(基于 element-plus) |

```shell
pnpm install

pnpm --filter {workspace} run {script}

# example
pnpm --filter @cskefu/web dev
```
## 解决的问题

https://github.com/cskefu/cskefu/issues/766

You can view, comment on, or merge this pull request online at:

  https://github.com/cskefu/cskefu/pull/783

-- Commit Summary --

  * #766 init frontend architecture
  * delete LICENSE file at frontend path

-- File Changes --

    A web/.gitignore (80)
    M web/README.md (58)
    A web/app/sdkjs/.gitkeep (0)
    A web/app/web/.gitignore (32)
    A web/app/web/README.md (16)
    A web/app/web/index.html (13)
    A web/app/web/package.json (20)
    A web/app/web/public/.gitkeep (0)
    A web/app/web/src/App.vue (5)
    A web/app/web/src/main.js (5)
    A web/app/web/src/style.css (81)
    A web/app/web/tsconfig.json (19)
    A web/app/web/tsconfig.node.json (9)
    A web/app/web/vite.config.ts (7)
    A web/package.json (11)
    A web/packages/@cskefu/cli/package.json (11)
    A web/packages/@cskefu/core/package.json (11)
    A web/packages/shared/includes/package.json (11)
    A web/packages/shared/utils/package.json (11)
    A web/packages/ui/package.json (11)
    A web/pnpm-lock.yaml (603)
    A web/pnpm-workspace.yaml (3)

-- Patch Links --

https://github.com/cskefu/cskefu/pull/783.patch
https://github.com/cskefu/cskefu/pull/783.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/cskefu/cskefu/pull/783
You are receiving this because you are on a team that was mentioned.

Message ID: <cskefu/cskefu/pull/783 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cskefu.com/pipermail/dev/attachments/20221229/b27a5c7f/attachment-0011.html>


More information about the Dev mailing list