Skip to content

Commit

Permalink
Merge pull request #7 from liuxian496/developer
Browse files Browse the repository at this point in the history
Developer
  • Loading branch information
liuxian496 committed May 11, 2024
2 parents 4f061a6 + f2253b2 commit d850565
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ jobs:
run: yarn build-storybook

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "storybook-static"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# [1.0.0](https://github.com/liuxian496/cyndi/compare/v0.2.2...v1.0.0) (2024-05-11)



## [0.2.2](https://github.com/liuxian496/cyndi/compare/v0.2.1...v0.2.2) (2024-05-11)



## [0.2.1](https://github.com/liuxian496/cyndi/compare/v0.2.0...v0.2.1) (2024-04-28)


Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
npm i cyndi

### 2. cyndi依赖的库
cyndi,依赖下面的库。
1. [lodash](https://github.com/lodash/lodash)
[lodash](https://github.com/lodash/lodash)

上述依赖,打包时不包含,需要使用的项目自行引入。

## 功能

Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cyndi",
"private": false,
"version": "0.2.1",
"version": "1.0.0",
"type": "module",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -27,6 +27,13 @@
"prepare": "husky"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down Expand Up @@ -56,7 +63,7 @@
"eslint-plugin-react-refresh": "^0.4.6",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^9.0.11",
"litten": "^0.9.4",
"litten": "^0.9.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-visualizer": "^5.12.0",
Expand Down
2 changes: 1 addition & 1 deletion src/stories/util.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import * as Stories from "./util.stories.tsx";

import { Summary } from "litten/dist/summary";
import { Color } from "litten/dist/global";
import { Color } from "litten/dist/enum";

<Meta of={Stories} />

Expand Down
16 changes: 12 additions & 4 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,27 @@ export default defineConfig({
index: "src/index.ts",
isEmptyString: "src/isEmptyString.ts",
printArrayItem: "src/printArrayItem.ts",
getPrefixNs:"src/getPrefixNs.ts"
getPrefixNs: "src/getPrefixNs.ts",
},
name: "cyndi",
fileName: "index",
},
outDir: "dist",
rollupOptions: {
external: ["react", "react-dom", "react/jsx-runtime"],
external: [
"react",
"react-dom",
"react/jsx-runtime",
"lodash/isString",
"lodash/isArray",
"lodash/forOwn",
],
output: [
{
manualChunks: (id: string) => {
if (id.includes("node_modules")) {
if (id.includes("lodash")) {
console.log("id");
return "lodash";
}
return "vender";
Expand All @@ -41,7 +49,7 @@ export default defineConfig({
},
plugins: [
react(),
dts()
// visualizer(),
dts(),
// visualizer()
],
});

0 comments on commit d850565

Please sign in to comment.