Skip to content

Commit 3be44fe

Browse files
committed
Merge branch 'main' of https://github.com/cjhw/island
2 parents a39395b + d0ce5e9 commit 3be44fe

File tree

4 files changed

+51
-174
lines changed

4 files changed

+51
-174
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# cai-island
2+
3+
ssg framework based on vite and island architecture
4+
5+
## Install
6+
7+
```shell
8+
npm i cai-create-island -g
9+
```
10+
11+
## Usage
12+
13+
add a template project
14+
15+
```bash
16+
pnpm create-island
17+
```

packages/create-island/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# cai-island
2+
3+
ssg framework based on vite and island architecture
4+
5+
## Install
6+
7+
```shell
8+
npm i cai-create-island -g
9+
```
10+
11+
## Usage
12+
13+
add a template project
14+
15+
```bash
16+
pnpm create-island
17+
```

packages/island/README.md

Lines changed: 17 additions & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,17 @@
1-
### 项目文件目录
2-
<!--filetoc-start-->
3-
- [.husky](https://github.com/cjhw/island/tree/main/.husky)
4-
- [_](https://github.com/cjhw/island/tree/main/.husky/_)
5-
- [.gitignore](https://github.com/cjhw/island/tree/main/.husky/_/.gitignore)
6-
- [husky.sh](https://github.com/cjhw/island/tree/main/.husky/_/husky.sh)
7-
- [commit-msg](https://github.com/cjhw/island/tree/main/.husky/commit-msg)
8-
- [pre-commit](https://github.com/cjhw/island/tree/main/.husky/pre-commit)
9-
- [bin](https://github.com/cjhw/island/tree/main/bin)
10-
- [island.js](https://github.com/cjhw/island/tree/main/bin/island.js)
11-
- [docs](https://github.com/cjhw/island/tree/main/docs)
12-
- [build](https://github.com/cjhw/island/tree/main/docs/build)
13-
- [assets](https://github.com/cjhw/island/tree/main/docs/build/assets)
14-
- [a.f6e0dc5d.js](https://github.com/cjhw/island/tree/main/docs/build/assets/a.f6e0dc5d.js)
15-
- [b.1a296dcf.js](https://github.com/cjhw/island/tree/main/docs/build/assets/b.1a296dcf.js)
16-
- [b.1b3cd05a.js](https://github.com/cjhw/island/tree/main/docs/build/assets/b.1b3cd05a.js)
17-
- [c.6fc84862.js](https://github.com/cjhw/island/tree/main/docs/build/assets/c.6fc84862.js)
18-
- [client-entry.8e0977d5.js](https://github.com/cjhw/island/tree/main/docs/build/assets/client-entry.8e0977d5.js)
19-
- [client-entry.ea3438a2.css](https://github.com/cjhw/island/tree/main/docs/build/assets/client-entry.ea3438a2.css)
20-
- [Counter.8982c913.js](https://github.com/cjhw/island/tree/main/docs/build/assets/Counter.8982c913.js)
21-
- [index.8120877b.js](https://github.com/cjhw/island/tree/main/docs/build/assets/index.8120877b.js)
22-
- [index.8ba6b484.js](https://github.com/cjhw/island/tree/main/docs/build/assets/index.8ba6b484.js)
23-
- [guide](https://github.com/cjhw/island/tree/main/docs/build/guide)
24-
- [a.html](https://github.com/cjhw/island/tree/main/docs/build/guide/a.html)
25-
- [b.html](https://github.com/cjhw/island/tree/main/docs/build/guide/b.html)
26-
- [c.html](https://github.com/cjhw/island/tree/main/docs/build/guide/c.html)
27-
- [index.html](https://github.com/cjhw/island/tree/main/docs/build/guide/index.html)
28-
- [b.html](https://github.com/cjhw/island/tree/main/docs/build/b.html)
29-
- [Counter.html](https://github.com/cjhw/island/tree/main/docs/build/Counter.html)
30-
- [index.html](https://github.com/cjhw/island/tree/main/docs/build/index.html)
31-
- [guide](https://github.com/cjhw/island/tree/main/docs/guide)
32-
- [a.tsx](https://github.com/cjhw/island/tree/main/docs/guide/a.tsx)
33-
- [b.tsx](https://github.com/cjhw/island/tree/main/docs/guide/b.tsx)
34-
- [c.tsx](https://github.com/cjhw/island/tree/main/docs/guide/c.tsx)
35-
- [index.mdx](https://github.com/cjhw/island/tree/main/docs/guide/index.mdx)
36-
- [public](https://github.com/cjhw/island/tree/main/docs/public)
37-
- [island.png](https://github.com/cjhw/island/tree/main/docs/public/island.png)
38-
- [b.tsx](https://github.com/cjhw/island/tree/main/docs/b.tsx)
39-
- [config.ts](https://github.com/cjhw/island/tree/main/docs/config.ts)
40-
- [Counter.tsx](https://github.com/cjhw/island/tree/main/docs/Counter.tsx)
41-
- [index.mdx](https://github.com/cjhw/island/tree/main/docs/index.mdx)
42-
- [test.ts](https://github.com/cjhw/island/tree/main/docs/test.ts)
43-
- [tsconfig.json](https://github.com/cjhw/island/tree/main/docs/tsconfig.json)
44-
- [e2e](https://github.com/cjhw/island/tree/main/e2e)
45-
- [playground](https://github.com/cjhw/island/tree/main/e2e/playground)
46-
- [basic](https://github.com/cjhw/island/tree/main/e2e/playground/basic)
47-
- [docs](https://github.com/cjhw/island/tree/main/e2e/playground/basic/docs)
48-
- [index.md](https://github.com/cjhw/island/tree/main/e2e/playground/basic/docs/index.md)
49-
- [package.json](https://github.com/cjhw/island/tree/main/e2e/playground/basic/package.json)
50-
- [pnpm-lock.yaml](https://github.com/cjhw/island/tree/main/e2e/playground/basic/pnpm-lock.yaml)
51-
- [index.test.ts](https://github.com/cjhw/island/tree/main/e2e/index.test.ts)
52-
- [scripts](https://github.com/cjhw/island/tree/main/scripts)
53-
- [prepare-e2e.cts](https://github.com/cjhw/island/tree/main/scripts/prepare-e2e.cts)
54-
- [src](https://github.com/cjhw/island/tree/main/src)
55-
- [node](https://github.com/cjhw/island/tree/main/src/node)
56-
- [constants](https://github.com/cjhw/island/tree/main/src/node/constants)
57-
- [index.ts](https://github.com/cjhw/island/tree/main/src/node/constants/index.ts)
58-
- [plugin-island](https://github.com/cjhw/island/tree/main/src/node/plugin-island)
59-
- [config.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-island/config.ts)
60-
- [indexHtml.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-island/indexHtml.ts)
61-
- [plugin-mdx](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx)
62-
- [rehypePlugins](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/rehypePlugins)
63-
- [preWrapper.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/rehypePlugins/preWrapper.ts)
64-
- [shiki.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/rehypePlugins/shiki.ts)
65-
- [remarkPlugins](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/remarkPlugins)
66-
- [toc.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/remarkPlugins/toc.ts)
67-
- [index.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/index.ts)
68-
- [pluginMdxHmr.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/pluginMdxHmr.ts)
69-
- [pluginMdxRollup.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-mdx/pluginMdxRollup.ts)
70-
- [plugin-routes](https://github.com/cjhw/island/tree/main/src/node/plugin-routes)
71-
- [fixtures](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/fixtures)
72-
- [guide](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/fixtures/guide)
73-
- [index.mdx](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/fixtures/guide/index.mdx)
74-
- [a.mdx](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/fixtures/a.mdx)
75-
- [index.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/index.ts)
76-
- [RouteService.test.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/RouteService.test.ts)
77-
- [RouteService.ts](https://github.com/cjhw/island/tree/main/src/node/plugin-routes/RouteService.ts)
78-
- [__tests__](https://github.com/cjhw/island/tree/main/src/node/__tests__)
79-
- [__snapshots__](https://github.com/cjhw/island/tree/main/src/node/__tests__/__snapshots__)
80-
- [index.test.ts.snap](https://github.com/cjhw/island/tree/main/src/node/__tests__/__snapshots__/index.test.ts.snap)
81-
- [babel-plugin-island.test.ts](https://github.com/cjhw/island/tree/main/src/node/__tests__/babel-plugin-island.test.ts)
82-
- [index.test.ts](https://github.com/cjhw/island/tree/main/src/node/__tests__/index.test.ts)
83-
- [md.test.ts](https://github.com/cjhw/island/tree/main/src/node/__tests__/md.test.ts)
84-
- [babel-plugin-island.ts](https://github.com/cjhw/island/tree/main/src/node/babel-plugin-island.ts)
85-
- [build.ts](https://github.com/cjhw/island/tree/main/src/node/build.ts)
86-
- [cli.ts](https://github.com/cjhw/island/tree/main/src/node/cli.ts)
87-
- [config.ts](https://github.com/cjhw/island/tree/main/src/node/config.ts)
88-
- [dev.ts](https://github.com/cjhw/island/tree/main/src/node/dev.ts)
89-
- [index.ts](https://github.com/cjhw/island/tree/main/src/node/index.ts)
90-
- [unocssOptions.ts](https://github.com/cjhw/island/tree/main/src/node/unocssOptions.ts)
91-
- [vitePlugins.ts](https://github.com/cjhw/island/tree/main/src/node/vitePlugins.ts)
92-
- [runtime](https://github.com/cjhw/island/tree/main/src/runtime)
93-
- [app.tsx](https://github.com/cjhw/island/tree/main/src/runtime/app.tsx)
94-
- [client-entry.tsx](https://github.com/cjhw/island/tree/main/src/runtime/client-entry.tsx)
95-
- [Content.tsx](https://github.com/cjhw/island/tree/main/src/runtime/Content.tsx)
96-
- [hooks.ts](https://github.com/cjhw/island/tree/main/src/runtime/hooks.ts)
97-
- [index.ts](https://github.com/cjhw/island/tree/main/src/runtime/index.ts)
98-
- [ssr-entry.tsx](https://github.com/cjhw/island/tree/main/src/runtime/ssr-entry.tsx)
99-
- [shared](https://github.com/cjhw/island/tree/main/src/shared)
100-
- [types](https://github.com/cjhw/island/tree/main/src/shared/types)
101-
- [attributify-shims.d.ts](https://github.com/cjhw/island/tree/main/src/shared/types/attributify-shims.d.ts)
102-
- [index.ts](https://github.com/cjhw/island/tree/main/src/shared/types/index.ts)
103-
- [types.d.ts](https://github.com/cjhw/island/tree/main/src/shared/types/types.d.ts)
104-
- [theme-default](https://github.com/cjhw/island/tree/main/src/theme-default)
105-
- [components](https://github.com/cjhw/island/tree/main/src/theme-default/components)
106-
- [Aside](https://github.com/cjhw/island/tree/main/src/theme-default/components/Aside)
107-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/Aside/index.module.scss)
108-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/Aside/index.tsx)
109-
- [Button](https://github.com/cjhw/island/tree/main/src/theme-default/components/Button)
110-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/Button/index.module.scss)
111-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/Button/index.tsx)
112-
- [DocFooter](https://github.com/cjhw/island/tree/main/src/theme-default/components/DocFooter)
113-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/DocFooter/index.module.scss)
114-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/DocFooter/index.tsx)
115-
- [HomeFeature](https://github.com/cjhw/island/tree/main/src/theme-default/components/HomeFeature)
116-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/HomeFeature/index.module.scss)
117-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/HomeFeature/index.tsx)
118-
- [HomeHero](https://github.com/cjhw/island/tree/main/src/theme-default/components/HomeHero)
119-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/HomeHero/index.module.scss)
120-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/HomeHero/index.tsx)
121-
- [Link](https://github.com/cjhw/island/tree/main/src/theme-default/components/Link)
122-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/Link/index.module.scss)
123-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/Link/index.tsx)
124-
- [Nav](https://github.com/cjhw/island/tree/main/src/theme-default/components/Nav)
125-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/Nav/index.module.scss)
126-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/Nav/index.tsx)
127-
- [Sidebar](https://github.com/cjhw/island/tree/main/src/theme-default/components/Sidebar)
128-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/Sidebar/index.module.scss)
129-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/Sidebar/index.tsx)
130-
- [SwitchAppearance](https://github.com/cjhw/island/tree/main/src/theme-default/components/SwitchAppearance)
131-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/components/SwitchAppearance/index.module.scss)
132-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/components/SwitchAppearance/index.tsx)
133-
- [Layout](https://github.com/cjhw/island/tree/main/src/theme-default/Layout)
134-
- [DocLayout](https://github.com/cjhw/island/tree/main/src/theme-default/Layout/DocLayout)
135-
- [index.module.scss](https://github.com/cjhw/island/tree/main/src/theme-default/Layout/DocLayout/index.module.scss)
136-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/Layout/DocLayout/index.tsx)
137-
- [HomeLayout](https://github.com/cjhw/island/tree/main/src/theme-default/Layout/HomeLayout)
138-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/Layout/HomeLayout/index.tsx)
139-
- [index.tsx](https://github.com/cjhw/island/tree/main/src/theme-default/Layout/index.tsx)
140-
- [logic](https://github.com/cjhw/island/tree/main/src/theme-default/logic)
141-
- [asideScroll.ts](https://github.com/cjhw/island/tree/main/src/theme-default/logic/asideScroll.ts)
142-
- [toggleAppearance.ts](https://github.com/cjhw/island/tree/main/src/theme-default/logic/toggleAppearance.ts)
143-
- [useHeaders.ts](https://github.com/cjhw/island/tree/main/src/theme-default/logic/useHeaders.ts)
144-
- [usePrevNextPage.ts](https://github.com/cjhw/island/tree/main/src/theme-default/logic/usePrevNextPage.ts)
145-
- [styles](https://github.com/cjhw/island/tree/main/src/theme-default/styles)
146-
- [base.css](https://github.com/cjhw/island/tree/main/src/theme-default/styles/base.css)
147-
- [doc.css](https://github.com/cjhw/island/tree/main/src/theme-default/styles/doc.css)
148-
- [vars.css](https://github.com/cjhw/island/tree/main/src/theme-default/styles/vars.css)
149-
- [index.ts](https://github.com/cjhw/island/tree/main/src/theme-default/index.ts)
150-
- [utils.ts](https://github.com/cjhw/island/tree/main/src/utils.ts)
151-
- [.commitlintrc.cjs](https://github.com/cjhw/island/blob/main/.commitlintrc.cjs)
152-
- [.eslintignore](https://github.com/cjhw/island/blob/main/.eslintignore)
153-
- [.eslintrc.cjs](https://github.com/cjhw/island/blob/main/.eslintrc.cjs)
154-
- [.gitignore](https://github.com/cjhw/island/blob/main/.gitignore)
155-
- [.prettierignore](https://github.com/cjhw/island/blob/main/.prettierignore)
156-
- [.prettierrc](https://github.com/cjhw/island/blob/main/.prettierrc)
157-
- [filetoc.config.js](https://github.com/cjhw/island/blob/main/filetoc.config.js)
158-
- [package.json](https://github.com/cjhw/island/blob/main/package.json)
159-
- [playwright.config.ts](https://github.com/cjhw/island/blob/main/playwright.config.ts)
160-
- [pnpm-lock.yaml](https://github.com/cjhw/island/blob/main/pnpm-lock.yaml)
161-
- [README.md](https://github.com/cjhw/island/blob/main/README.md)
162-
- [template.html](https://github.com/cjhw/island/blob/main/template.html)
163-
- [tsconfig.json](https://github.com/cjhw/island/blob/main/tsconfig.json)
164-
- [tsup.config.ts](https://github.com/cjhw/island/blob/main/tsup.config.ts)
165-
- [vitest.config.ts](https://github.com/cjhw/island/blob/main/vitest.config.ts)
166-
<!--filetoc-end-->
1+
# cai-island
2+
3+
ssg framework based on vite and island architecture
4+
5+
## Install
6+
7+
```shell
8+
npm i cai-create-island -g
9+
```
10+
11+
## Usage
12+
13+
add a template project
14+
15+
```bash
16+
pnpm create-island
17+
```

packages/island/filetoc.config.js

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

0 commit comments

Comments
 (0)