Skip to content

Commit b40f5df

Browse files
committed
feat: update
1 parent f94d18e commit b40f5df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+260
-297
lines changed

packages/template-pkg-monorepo-react/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.1.0
4+
5+
- [feat] use `@ali/pkg-plugin-dev` instead of `@ice/pkg-plugin-docusaurus` internal
6+
37
## 1.0.11
48

59
- [fix] 修复生成文档目录时包含其他非 `docs` 目录下文档问题

packages/template-pkg-monorepo-react/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@ice/template-pkg-monorepo-react",
3-
"version": "1.0.11",
3+
"version": "1.1.0",
44
"files": [
55
"template",
6-
"!template/component/.docusaurus",
76
"!template/component/build",
87
"!template/component/pnpm-lock.yaml",
98
"!template/**/node_modules",
@@ -30,4 +29,4 @@
3029
"materialConfig": {
3130
"type": "react"
3231
}
33-
}
32+
}

packages/template-pkg-monorepo-react/template/component/build.config.mts

Lines changed: 0 additions & 37 deletions
This file was deleted.

packages/template-pkg-monorepo-react/template/component/package.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"start": "pnpm packages:start & pnpm docs:start",
7-
"build": "pnpm packages:build && pnpm docs:build",
8-
"packages:start": "pnpm --parallel -r run start",
9-
"packages:build": "pnpm -r run build",
10-
"docs:start": "ice-pkg start",
11-
"docs:build": "ice-pkg build",
6+
"start": "pnpm --parallel -r run start",
7+
"build": "pnpm -r run build",
128
"eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./",
139
"eslint:fix": "pnpm eslint --fix",
1410
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
@@ -17,16 +13,8 @@
1713
"lint:fix": "pnpm eslint:fix && pnpm stylelint:fix"
1814
},
1915
"devDependencies": {
20-
"@docusaurus/module-type-aliases": "^2.3.1",
21-
"@docusaurus/theme-classic": "^2.3.1",
2216
"@ice/pkg": "^1.5.0",
23-
"@ice/pkg-plugin-docusaurus": "^1.4.3",
2417
"@applint/spec": "^1.0.0",
25-
"@tsconfig/docusaurus": "^1.0.6",
26-
"clsx": "^1.2.1",
27-
"component-a": "workspace:*",
28-
"component-b": "workspace:*",
29-
"component-c": "workspace:*",
3018
"eslint": "^8.0.0",
3119
"react": "^18.2.0",
3220
"react-dom": "^18.2.0",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# header
2+
3+
组件功能描述
4+
5+
## Install
6+
7+
```bash
8+
$ npm i header --save
9+
```
10+
11+
## Usage
12+
13+
```jsx
14+
import Header from 'header';
15+
```
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { defineConfig } from '@ice/pkg';
22

33
// https://pkg.ice.work/reference/config/
4-
export default defineConfig({
5-
});
4+
export default defineConfig({});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "component-c",
2+
"name": "header",
33
"version": "0.1.0",
44
"description": "组件功能描述",
55
"files": [
@@ -45,6 +45,8 @@
4545
"@swc/helpers": "^0.5.1"
4646
},
4747
"devDependencies": {
48+
"@ali/pkg-plugin-dev": "^1.0.0",
49+
"@ali/pkg-plugin-dev-client": "^1.0.0",
4850
"@ice/pkg": "^1.0.0",
4951
"@types/react": "^18.0.0",
5052
"react": "^18.0.0",
@@ -54,4 +56,4 @@
5456
"react": "^17 || ^18"
5557
},
5658
"license": "MIT"
57-
}
59+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/* Write your style here. */
2-
.componentC {
2+
.ComponentA {
33
display: block;
44
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import * as React from 'react';
22
import styles from './index.module.css';
33

44
interface ComponentProps {
5-
/** Title for componentC. */
6-
title: string;
5+
title?: string;
76
}
87

9-
export default function componentC(props: ComponentProps) {
8+
export default function Header(props: ComponentProps) {
109
const { title = 'Hello World!' } = props;
1110

1211
return (
13-
<div className={styles.componentC}>{title}</div>
12+
<div className={styles.ComponentA}>Header {title}</div>
1413
);
1514
}
File renamed without changes.

0 commit comments

Comments
 (0)