Skip to content

Commit

Permalink
chore: 添加inject-head-style维护的背景介绍
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Aug 20, 2024
1 parent 9235250 commit 0e5c731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
7 changes: 6 additions & 1 deletion packages/others/inject-head-style/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `@hi-ui/inject-head-style`
# `inject-head-style`

> TODO: description
Expand All @@ -9,3 +9,8 @@ const injectHeadStyle = require('@hi-ui/inject-head-style');
// TODO: DEMONSTRATE API
```

### 背景介绍:
- 之间组件依赖的都是这个库,但是这个库没有配置 licence,不符合开源协议,该库也不在 hiui 工程中维护,所以也就无法修改和发布 npm,就导致无法继续使用
- 后来就在 hiui 工程中新开发了一个 @hi-ui/style-inject 库,问题是新版本的组件可以使用该库,但是老版本的组件中还是用的 inject-head-style 这个库
- 最后找到了之前发布 inject-head-style 库的作者,将 inject-head-style 库的代码拷贝过来,并修改了 licence,然后发布了一个新版本,也就将改库先维护在 hiui 工程中
15 changes: 0 additions & 15 deletions packages/others/inject-head-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
],
"author": "flcwl",
"license": "MIT",
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"prepare": "tsdx build",
"predeploy": "npm run build && cd example && npm run build",
"deploy": "gh-pages -d ./example/dist",
"release": "np --no-yarn --no-tests --no-cleanup"
},
"directories": {
"dist": "dist"
},
Expand All @@ -41,11 +31,6 @@
"Android >= 4.4",
"iOS >= 9"
],
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
Expand Down

0 comments on commit 0e5c731

Please sign in to comment.