![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
[![react](https://img.shields.io/badge/react-v16-blue)](https://reactjs.org/) [![lingui](https://img.shields.io/badge/lingui-v1-blue)](https://lingui.js.org/) [![babel](https://img.shields.io/badge/babel-v7-yellow)](https://babeljs.io/) [![express](https:
current version: v0.11.25
master branch的docs目录
npm install git+ssh://git@gitlab.mokahr.com:TryMoka/moka-email#v0.11.25
npm run lingui:extract
npm run lingui:compile
npm run dev
邮件组件位于lib/toXXX/
目录下,需要按如下方式引入(这样可以确保只打包需要的js)
import CancelInterviewEmail from 'moka-email/lib/toApplication/CancelInterviewEmail';
<CancelInterviewEmail
application={application}
hr={hr}
/>
import { TO_APPLICATION_INTERVIEW_SATISFACTION_EMAIL } from 'moka-email/emails';
sendEmail({ emailKey: TO_APPLICATION_INTERVIEW_SATISFACTION_EMAIL, emailProps });
import { renderEmail } from 'moka-email/ssr';
import { TO_APPLICATION_INTERVIEW_SATISFACTION_EMAIL } from 'moka-email/emails';
const html = renderEmail({
emailKey: TO_APPLICATION_INTERVIEW_SATISFACTION_EMAIL,
locale,
props,
});
build之后的emails.js里有version信息,此外渲染出来的邮件的某个table标签里隐藏了一个class name(比如叫moka-email-0.5.7),标记了该邮件的版本。
lib/toXXXX/
目录下,例如toApplication
,表示发送给申请候选人的邮件。添加邮件组件时,请务必遵从这个约定。XXXXXEmail.js
,非Email结尾的文件将不会被识别为邮件组件。邮件很特殊,只能使用传统的table结构布局,只能使用inline style,此外还有其他诸多限制,不同邮件客户端的支持情况也不一样.一个经验法则是,如果outlook显示没有问题了,那应该就没有问题了(就像兼容IE那样)。有许多邮件html validator,比如这个
common目录下有若干已经定义好的基本组件,禁止在邮件中直接出现div,p,table等tag,请使用common组件.
开发过程中,可以执行npm run dev
实时看到邮件组件的渲染样式。
执行npm run test
跑UT(如果UT失败,请确认是否正常,如果是正常改动,则可以执行 npm run test -- -u
修复snapshot)
新feature禁止直接向master push,必须走PR。
npm run lingui:extract
提取最新的待翻译文本src/locales/message.csv
文件,补充翻译文本npm run lingui:compile
编译翻译文本执行npm run test
确保UT通过
整理上个版本至今的所有PR,更新CHANGELOG.md
运行npm run pre-release
, 生成pre-release的mr
再把mr合并进master后, 运行npm run release
有两种测试邮件的方法,一种是本地发邮件出去看看效果,另一种是发布测试包然后更新pigeon依赖
{
"email": "your@email.address",
"password": "your email password"
}
目前仅支持腾讯企业邮箱
npm run dev
然后在每个邮件下方有一个“发送测试邮件”,点击即可发送具体逻辑是用配置中的账号密码登录,然后向该邮箱发送测试邮件
npm run release-test
发布一个测试版本,脚本执行结束后会在屏幕中打印出测试版本的安装路径,记下这个,例如:测试版本发布完成,可以使用如下方式安装测试依赖
npm install git+ssh://git@gitlab.mokahr.com:TryMoka/moka-email#v0.11.25
把测试版本的安装地址告诉pigeon的维护者,让他更新pigeon依赖的moka-email(staging环境的pigeon)
staging环境的pigeon更新完成后,就可以测试了
FAQs
[![react](https://img.shields.io/badge/react-v16-blue)](https://reactjs.org/) [![lingui](https://img.shields.io/badge/lingui-v1-blue)](https://lingui.js.org/) [![babel](https://img.shields.io/badge/babel-v7-yellow)](https://babeljs.io/) [![express](https:
The npm package moka-email receives a total of 0 weekly downloads. As such, moka-email popularity was classified as not popular.
We found that moka-email demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.