Cypress 图标
图标的最新版本在 npm 上以 ./dist。 。 。 .
公共API将永远引用这些文件.
./dist 不检查源控.
安装
npm install @cypress/icons
API 密码
icons = require("@cypress/icons")
## get the absolute path to default favicon
icons.getPathToFavicon( *filename* )
icons.getPathToFavicon("favicon-blue.ico")
## => /Users/.../dist/favicon/favicon-blue.ico
## get the absolute path to tray icon
icons.getPathToTray( *filename* )
icons.getPathToTray("mac-normal-red.png")
## => /Users/.../dist/tray/mac-normal-red.png
## get the absolute path to icon
icons.getPathToIcon( *filename* )
icons.getPathToIcon("[email protected]")
## => /Users/.../dist/icons/[email protected]
发展中的联系
cd cypress-icons
npm link
cd ../path/to/your/project
npm link cypress-icons
发展中国家
## modify files in ./src
<hack hack hack>
## run build to dump to ./dist
npm run build
## commit src
git commit -am 'updated icons'
## publish new version
npm run release
测试
npm test
更改日志
0.7.0 - (中文(简体) ) (05/29/18) (中文(简体) )
- 添加反向标志
- 忽略 npm 模块的 src 和测试
0.6.0 - (中文(简体) ) (09/20/17) (中文(简体) )
- 为窗口添加 cypress.ico 图标
- 删除 coffeescrip 标记
0.5.4 - (中文(简体) ) (05/29/17) (中文(简体) )
- 重命名软件包
0.5.3 - (中文(简体) ) (05/29/17) (中文(简体) )
- 删除咖啡标记, 使用 es6
0.5.2 - 7 (单位:千美元) (04/20/17) (中文(简体) )
- coffee-script和发布者 代码
0.5.1 - 目标 (04/20/17) (中文(简体) )
- 重新命名的软件包, 使用 cypress- coffee- script
0.5.0 (单位:千美元)
- 添加反向标志
0.4.1 (中文(简体) )
- 修复失败的图标集构建
0.4.0 (中文(简体) )
- 添加获取标识路径的新方法
0.3.2 (韩语)
- 添加带有黑色 cypress 标志的标志文件夹
0.3.1 (中文(简体) )
- 更新为 5.1.0 的节点版本
- 凸起调试
0.3.0 (中文(简体) )
- 新增图标大小 : 48@2x, 48, 38, 19
6.2.1 国家
- 更新红色和蓝色托盘图标,使其更暗
- 更新红色和蓝色外观,使其更暗
0.2.0 (中文(简体) )
- 范围包为cypress org
- 更新 favicon api 以选择路径参数
0.1.0 (中文(简体) )
- 带有更新图标的初始发布