-
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.
- Loading branch information
Showing
53 changed files
with
260 additions
and
297 deletions.
There are no files selected for viewing
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({}); |
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
2 changes: 1 addition & 1 deletion
2
...packages/component-c/src/index.module.css → ...nent/packages/Header/src/index.module.css
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,4 @@ | ||
/* Write your style here. */ | ||
.componentC { | ||
.ComponentA { | ||
display: block; | ||
} |
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
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
.../template-pkg-monorepo-react/template/component/packages/component-a/build.config.mts.ejs
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,17 @@ | ||
import { defineConfig } from '@ice/pkg'; | ||
|
||
// https://pkg.ice.work/reference/config/ | ||
export default defineConfig({ | ||
<% if (locals.internal) { _%> | ||
plugins: [ | ||
[ | ||
'@ali/pkg-plugin-dev', | ||
{ | ||
clientArgs: { | ||
port: 3001, | ||
} | ||
}, | ||
], | ||
], | ||
<% } _%> | ||
}); |
6 changes: 6 additions & 0 deletions
6
packages/template-pkg-monorepo-react/template/component/packages/component-a/dev/index.tsx
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,6 @@ | ||
import React from 'react'; | ||
import Mod from '../src'; | ||
|
||
export default () => { | ||
return <Mod title={'Hi!'} />; | ||
}; |
8 changes: 0 additions & 8 deletions
8
...mplate-pkg-monorepo-react/template/component/packages/component-a/docs/index.md
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
packages/template-pkg-monorepo-react/template/component/packages/component-a/docs/usage.js
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...mplate-pkg-monorepo-react/template/component/packages/component-a/docs/usage.md
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...template-pkg-monorepo-react/template/component/packages/component-a/docs/usage.module.css
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
63 changes: 63 additions & 0 deletions
63
...ages/template-pkg-monorepo-react/template/component/packages/component-a/package.json.ejs
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,63 @@ | ||
{ | ||
"name": "component-a", | ||
"version": "0.1.0", | ||
"description": "组件功能描述", | ||
"files": [ | ||
"esm", | ||
"cjs", | ||
"es2017", | ||
"dist" | ||
], | ||
"main": "esm/index.js", | ||
"module": "esm/index.js", | ||
"types": "esm/index.d.ts", | ||
"exports": { | ||
".": { | ||
"es2017": { | ||
"types": "./es2017/index.d.ts", | ||
"default": "./es2017/index.js" | ||
}, | ||
"default": { | ||
"types": "./esm/index.d.ts", | ||
"default": "./esm/index.js" | ||
} | ||
}, | ||
"./*": "./*" | ||
}, | ||
"sideEffects": [ | ||
"dist/*", | ||
"*.scss", | ||
"*.less", | ||
"*.css" | ||
], | ||
"scripts": { | ||
"start": "ice-pkg start", | ||
"build": "rimraf esm es2017 && ice-pkg build", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"keywords": [ | ||
"icepkg", | ||
"react", | ||
"component" | ||
], | ||
"dependencies": { | ||
"@ice/jsx-runtime": "^0.2.0", | ||
"@swc/helpers": "^0.5.1", | ||
"header": "workspace:^" | ||
}, | ||
"devDependencies": { | ||
<% if (locals.internal) { _%> | ||
"@ice/runtime": "^1.0.0", | ||
"@ali/pkg-plugin-dev": "^1.0.0", | ||
"@ali/pkg-plugin-dev-client": "^1.0.0", | ||
<% } _%> | ||
"@ice/pkg": "^1.0.0", | ||
"@types/react": "^18.0.0", | ||
"react": "^18.0.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17 || ^18" | ||
}, | ||
"license": "MIT" | ||
} |
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
17 changes: 17 additions & 0 deletions
17
.../template-pkg-monorepo-react/template/component/packages/component-b/build.config.mts.ejs
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,17 @@ | ||
import { defineConfig } from '@ice/pkg'; | ||
|
||
// https://pkg.ice.work/reference/config/ | ||
export default defineConfig({ | ||
<% if (locals.internal) { _%> | ||
plugins: [ | ||
[ | ||
'@ali/pkg-plugin-dev', | ||
{ | ||
clientArgs: { | ||
port: 3002, | ||
} | ||
}, | ||
], | ||
], | ||
<% } _%> | ||
}); |
6 changes: 6 additions & 0 deletions
6
packages/template-pkg-monorepo-react/template/component/packages/component-b/dev/index.tsx
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,6 @@ | ||
import React from 'react'; | ||
import Mod from '../src'; | ||
|
||
export default () => { | ||
return <Mod title={'Hi!'} />; | ||
}; |
8 changes: 0 additions & 8 deletions
8
...mplate-pkg-monorepo-react/template/component/packages/component-b/docs/index.md
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
packages/template-pkg-monorepo-react/template/component/packages/component-b/docs/usage.js
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...mplate-pkg-monorepo-react/template/component/packages/component-b/docs/usage.md
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...template-pkg-monorepo-react/template/component/packages/component-b/docs/usage.module.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.