-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pkg-plugin-dev to preview components (#104)
* feat: update template-pkg-monorepo-node * feat: update
- Loading branch information
Showing
70 changed files
with
284 additions
and
459 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
packages/template-pkg-monorepo-node/template/component/build.config.mts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,30 +3,15 @@ | |
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"start": "pnpm packages:start & pnpm docs:start", | ||
"build": "pnpm packages:build && pnpm docs:build", | ||
"packages:start": "pnpm --parallel -r run start", | ||
"packages:build": "pnpm -r run build", | ||
"docs:start": "ice-pkg start", | ||
"docs:build": "ice-pkg build", | ||
"start": "pnpm --parallel -r run start", | ||
"build": "pnpm -r run build", | ||
"eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./", | ||
"eslint:fix": "pnpm eslint --fix" | ||
}, | ||
"devDependencies": { | ||
"@docusaurus/module-type-aliases": "^2.3.1", | ||
"@docusaurus/theme-classic": "^2.3.1", | ||
"@ice/pkg": "^1.5.0", | ||
"@ice/pkg-plugin-docusaurus": "^1.4.3", | ||
"@applint/spec": "^1.0.0", | ||
"@tsconfig/docusaurus": "^1.0.6", | ||
"@types/react": "^18.0.28", | ||
"clsx": "^1.2.1", | ||
"eslint": "^8.0.0", | ||
"lib-a": "workspace:*", | ||
"lib-b": "workspace:*", | ||
"lib-c": "workspace:*", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"rimraf": "^4.1.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
6 changes: 3 additions & 3 deletions
6
...mplate/component/packages/lib-c/README.md → ...plate/component/packages/common/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# lib-c | ||
# common | ||
|
||
组件功能描述 | ||
|
||
## Install | ||
|
||
```bash | ||
$ npm i lib-c --save | ||
$ npm i common --save | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
import LibC from 'lib-c'; | ||
import { add } from 'common'; | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/template-pkg-monorepo-node/template/component/packages/common/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function add(a: number, b: number) { | ||
return a + b; | ||
} |
File renamed without changes.
8 changes: 0 additions & 8 deletions
8
...ages/template-pkg-monorepo-node/template/component/packages/lib-a/docs/index.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/template-pkg-monorepo-node/template/component/packages/lib-a/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export function foo(options: any) { | ||
console.log('options'); | ||
return true; | ||
import { add } from 'common'; | ||
|
||
export function main() { | ||
console.log(add(1, 2)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/template-pkg-monorepo-node/template/component/packages/lib-b/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export function foo(options: any) { | ||
console.log('options'); | ||
return true; | ||
import { add } from 'common'; | ||
|
||
export function main() { | ||
console.log(add(3, 4)); | ||
} |
8 changes: 0 additions & 8 deletions
8
...ages/template-pkg-monorepo-node/template/component/packages/lib-c/docs/index.md
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/template-pkg-monorepo-node/template/component/packages/lib-c/src/index.ts
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
packages/template-pkg-monorepo-node/template/component/pages/index.module.css
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
packages/template-pkg-monorepo-node/template/component/pages/index.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/template-pkg-monorepo-node/template/component/tsconfig.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
packages/template-pkg-monorepo-react/template/component/build.config.mts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/template-pkg-monorepo-react/template/component/packages/Header/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# header | ||
|
||
组件功能描述 | ||
|
||
## Install | ||
|
||
```bash | ||
$ npm i header --save | ||
``` | ||
|
||
## Usage | ||
|
||
```jsx | ||
import Header from 'header'; | ||
``` |
3 changes: 1 addition & 2 deletions
3
...ent/packages/component-c/build.config.mts → ...omponent/packages/Header/build.config.mts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { defineConfig } from '@ice/pkg'; | ||
|
||
// https://pkg.ice.work/reference/config/ | ||
export default defineConfig({ | ||
}); | ||
export default defineConfig({}); |
Oops, something went wrong.