From 841c31d4ecd2db069dba370d295d2c8ed1e8510c Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Mon, 10 Jun 2024 10:27:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 7 ++++--- README.md | 23 +++++++++-------------- example/hello.tsx | 11 ++++++----- example/index.tsx | 33 ++++++++++++++++++++++----------- package.json | 1 + 5 files changed, 42 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index f14da90..07830ab 100644 --- a/.gitignore +++ b/.gitignore @@ -147,6 +147,7 @@ yunzai /entrypoint.sh # mkdir -dist -docs -public \ No newline at end of file +dist/ +docs/ +public/ +html/ \ No newline at end of file diff --git a/README.md b/README.md index 0ce444e..26ae14b 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,13 @@ tailwindcss将识别plugins目录下的tsx和jsx文件 [查看 开发示例](./example/index.tsx) +> 执行尝试生产html + +```sh +npm run css +npx ts-node ./example/index.ts +``` + ## 生成开发文档 ```sh @@ -164,9 +171,9 @@ const Obj = {} // 不推荐new ``` -## 关于lib目录 +## 关于lib -lib目录将在未来逐渐放弃,在版本发布后,开发者需要有意识的对此变化做出调整. +将在未来逐渐放弃,在版本发布后,开发者需要有意识的对此变化做出调整. ```ts // 已废弃 @@ -181,15 +188,3 @@ lib目录将在未来逐渐放弃,在版本发布后,开发者需要有意 // 其他内容逐步优化。。。 ``` - -## 新版目录 - -- 核心源码 src/core - -- 配置管理 src/config - -- 数据管理 src/db - -- 接口板块 src/mys - -- 工具类 src/utils diff --git a/example/hello.tsx b/example/hello.tsx index 5ad2907..7dd4fdc 100644 --- a/example/hello.tsx +++ b/example/hello.tsx @@ -1,9 +1,10 @@ import React from 'react' -type PropsType = { - data: { - name: string - } +export type DataType = { + name: string +} +export type PropsType = { + data: DataType } export default function App({ data }: PropsType) { - return