Skip to content

Commit

Permalink
Hotfix/preinstall (#39)
Browse files Browse the repository at this point in the history
* publish (#38)

* ci: 新增 action 手动触发

* ci: 新增手动 action 提示

* chore(release): 1.1.0-beta.1 [skip ci]

# [1.1.0-beta.1](v1.0.0...v1.1.0-beta.1) (2023-06-14)

### Features

* 添加文档搜索功能 ([#24](#24)) ([9248fb6](9248fb6))

* docs: update README.md (#17)

* feat: 计算文字宽度

✅ Closes: #15

* chore(release): 1.0.0-development.1 [skip ci]

# 1.0.0-development.1 (2023-05-25)

### Features

* 清除历史日志,项目迁移 ([5ec0f43](5ec0f43))
* 计算文字宽度 ([b916185](b916185)), closes [#15](#15)
* 重置版本号 ([55def4a](55def4a))

* docs: update README.md

---------

Co-authored-by: liu <liunian@2077tech.com>
Co-authored-by: liu <liunian7965@navinfo.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: wuhaoyuan <wuhaoyuan@cennavi.com.cn>

* ci: 修改触发单元测试覆盖率的分支

old:main -> new:development

* ci: 兼容新版 vitest

vitest-dev/vitest#3339

* ci: 测试覆盖率前生成 banner

* test: 单元测试更新 (#28)

Co-authored-by: lyj <liyanjie@cennavi.com.cn>

* docs: readme update (#30)

Co-authored-by: wuhaoyuan <wuhaoyuan@cennavi.com.cn>

* build: 使用 pnpm 替代 yarn (#31)

* feat: 异步加载文件成功提示信息 (#32)

Co-authored-by: wuhaoyuan <wuhaoyuan@cennavi.com.cn>
Co-authored-by: liu <liunian@2077tech.com>

* feature: 更新 load 方法,并修改 vite 打包暴露的全局变量名称为 niUtils (#33)

* refactor: 修改默认暴露名称

* fix: 修改load的函数

---------

Co-authored-by: wuhaoyuan <wuhaoyuan@cennavi.com.cn>
Co-authored-by: wuhaoyuan <wuhaoyuan11101@navinfo.com>

* feat: 补充单元测试并增加 e2e 相关测试 (#34)

* feat: 单元测试增加jsdom相关测试

* test: 添加 e2e 的测试并使用 eslint 重新格式化整个项目

* feat: 新增获取元素样式的值的函数

* test: 修复错误的 computedTextWidth 测试用例逻辑

* ci: 添加 cypress 的缓存

---------

Co-authored-by: lyj <liyanjie@cennavi.com.cn>
Co-authored-by: liunian <liunian@2077tech.com>

---------

Co-authored-by: liunian <liunian@2077tech.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: liu <liunian7965@navinfo.com>
Co-authored-by: wuhaoyuan <wuhaoyuan@cennavi.com.cn>
Co-authored-by: 李彦杰 <1132925293@qq.com>
Co-authored-by: lyj <liyanjie@cennavi.com.cn>
Co-authored-by: wuhaoyuan <wuhaoyuan11101@navinfo.com>

* feat: 修改 keywords

* chore(release): 1.1.0 [skip ci]

# [1.1.0](v1.0.0...v1.1.0) (2023-07-19)

### Features

* 修改 keywords ([11c4e02](11c4e02))
* 添加文档搜索功能 ([#24](#24)) ([9248fb6](9248fb6))

* fix: 修复 preinstall 导致的错误

---------

Co-authored-by: alanwhy <34852024+alanwhy@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: liu <liunian7965@navinfo.com>
Co-authored-by: wuhaoyuan <wuhaoyuan@cennavi.com.cn>
Co-authored-by: 李彦杰 <1132925293@qq.com>
Co-authored-by: lyj <liyanjie@cennavi.com.cn>
Co-authored-by: wuhaoyuan <wuhaoyuan11101@navinfo.com>
  • Loading branch information
8 people authored Jul 19, 2023
1 parent 0a1c5ed commit a334687
Show file tree
Hide file tree
Showing 5 changed files with 3,450 additions and 4,709 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# [1.1.0](https://github.com/NI-Web-Infra-Team/common-utils/compare/v1.0.0...v1.1.0) (2023-07-19)


### Features

* 修改 keywords ([11c4e02](https://github.com/NI-Web-Infra-Team/common-utils/commit/11c4e025468636f1649788f4c4d1c4cc29823a59))
* 添加文档搜索功能 ([#24](https://github.com/NI-Web-Infra-Team/common-utils/issues/24)) ([9248fb6](https://github.com/NI-Web-Infra-Team/common-utils/commit/9248fb662831c73ff6f5dc29bc633b3cfac84baf))

# [1.1.0-beta.1](https://github.com/NI-Web-Infra-Team/common-utils/compare/v1.0.0...v1.1.0-beta.1) (2023-06-14)

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RE2_DOWNLOAD_MIRROR=https://cdn.npmmirror.com/binaries/node-re2,
RE2_DOWNLOAD_SKIP_PATH=true,
PRISMA_ENGINES_MIRROR=https://cdn.npmmirror.com/binaries/prisma,
npm_config_better_sqlite3_binary_host=https://cdn.npmmirror.com/binaries/better-sqlite3,
npm_config_keytar_binary_host=https://cdn.npmmirror.com/binaries/keytar,
npm_config_keytar_binary_host=https://cdn.npmmirror.com/binaries/keytar
npm_config_sharp_binary_host=https://cdn.npmmirror.com/binaries/sharp,
npm_config_sharp_libvips_binary_host=https://cdn.npmmirror.com/binaries/sharp-libvips,
npm_config_robotjs_binary_host=https://cdn.npmmirror.com/binaries/robotjs
Expand Down
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@ni-web-infra/common-utils",
"version": "1.1.0-beta.1",
"version": "1.1.0",
"description": "NI util function library",
"packageManager": "pnpm@8.6.0",
"main": "dist/index.js",
"type": "module",
"module": "dist/index.es.js",
"types": "types/index.d.ts",
"scripts": {
"preinstall": "node ./scripts/preinstall.cjs",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"build": "pnpm run banner && pnpm run build:type && pnpm run build:vite",
"build:vite": "vite build",
Expand Down Expand Up @@ -40,10 +40,11 @@
"access": "public"
},
"keywords": [
"util",
"common-utils",
"frontend",
"cennavi",
"navinfo"
"navinfo",
"ni-web"
],
"author": "NI Web Infra Team",
"lint-staged": {
Expand All @@ -55,36 +56,36 @@
},
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@cypress/code-coverage": "^3.10.8",
"@rollup/plugin-commonjs": "^25.0.2",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@cypress/code-coverage": "^3.11.0",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@semantic-release/changelog": "~6.0.3",
"@semantic-release/exec": "~6.0.3",
"@semantic-release/git": "~10.0.1",
"@semantic-release/github": "^9.0.3",
"@semantic-release/github": "^9.0.4",
"@semantic-release/npm": "~10.0.4",
"@types/cypress__code-coverage": "^3.10.0",
"@types/js-cookie": "^3.0.3",
"@types/lodash-es": "^4.17.7",
"@types/node": "^20.3.3",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@vitest/coverage-v8": "^0.32.4",
"@types/lodash-es": "^4.17.8",
"@types/node": "^20.4.2",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@vitest/coverage-v8": "^0.33.0",
"better-docs": "^2.7.2",
"commitizen": "^4.3.0",
"cypress": "^12.16.0",
"cypress-vite": "^1.4.0",
"cypress": "^12.17.1",
"cypress-vite": "^1.4.2",
"dayjs": "^1.11.9",
"dotenv": "^16.3.1",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"git-cz": "^4.9.0",
"husky": "^8.0.3",
"js-cookie": "^3.0.5",
Expand All @@ -93,17 +94,17 @@
"lint-staged": "^13.2.3",
"lodash-es": "^4.17.21",
"minami": "^1.2.3",
"octokit": "^2.1.0",
"prettier": "^2.8.8",
"octokit": "^3.0.0",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"rollup": "^3.26.0",
"rollup": "^3.26.3",
"semantic-release": "~21.0.7",
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vite": "^4.4.4",
"vite-plugin-banner": "^0.7.0",
"vite-plugin-istanbul": "^4.1.0",
"vitepress": "^1.0.0-beta.5",
"vitest": "^0.32.4",
"vitest": "^0.33.0",
"yaml": "^2.3.1"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit a334687

Please sign in to comment.