0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/connectors
aiden f4e64922fb
chore(connector): improve DingTalk web connector readme (#5977)
* feat: add dingtalk connector

* refactor(connector): optimize codes

* refactor(connector): optimize the logic of getting user phone

* docs(connector): add English configuration guide for DingTalk

* docs(connector): add table of contents

* docs(connector): optimize format

* chore(connector): update DingTalk web connector readme

* chore(connector): apply suggestions from code review

Co-authored-by: Darcy Ye <darcyye@silverhand.io>
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>

---------

Co-authored-by: aidenlu <aiden_lu@wochacha.com>
Co-authored-by: Darcy Ye <darcyye@silverhand.io>
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2024-06-04 10:31:05 +08:00
..
connector-alipay-native feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-alipay-web feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-aliyun-dm feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-aliyun-sms feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-apple feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-aws-ses feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-azuread feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-dingtalk-web chore(connector): improve DingTalk web connector readme (#5977) 2024-06-04 10:31:05 +08:00
connector-discord feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-facebook feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-feishu-web feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-github release: version packages (#5868) 2024-05-31 23:48:43 +08:00
connector-google feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-huggingface chore(deps): update dependency nock to v14.0.0-beta.7 (#5952) 2024-05-31 02:43:31 +00:00
connector-kakao feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-logto-email chore(deps): update dependency @logto/cloud to v0.2.5-a7eedce (#5847) 2024-06-03 04:16:04 +00:00
connector-logto-sms feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-logto-social-demo chore: fix typo (#5942) 2024-05-30 13:11:59 +08:00
connector-mailgun feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-mock-email feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-mock-email-alternative feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-mock-sms feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-mock-social feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-naver feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-oauth2 chore(deps): update dependency nock to v14.0.0-beta.7 (#5952) 2024-05-31 02:43:31 +00:00
connector-oidc chore(deps): update dependency nock to v14.0.0-beta.7 (#5952) 2024-05-31 02:43:31 +00:00
connector-saml feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-sendgrid-email feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-smsaero feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-smtp feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-tencent-sms feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-twilio-sms feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-wechat-native feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
connector-wechat-web fix(connector): fix invalid image path in connector readme (#5887) 2024-05-17 18:10:51 +08:00
connector-wecom chore(connector): update wecom connector readme (#5894) 2024-05-17 10:20:01 +00:00
templates chore: build oauth2 connector on prepack (#5855) 2024-05-13 17:06:04 +08:00
.gitignore refactor: use vitest for connectors (#5562) 2024-03-28 10:21:50 +08:00
README.md refactor: leverage pnpmfile for dependency installation 2023-04-01 20:53:44 +08:00

Logto connectors directory

Template syncing

Since all connectors have a same pattern for package.json, here we leverage several techniques to avoid annoying copy-pastes:

When pnpm i

  • The "pnpm:devPreinstall" script in the project root executes templates/sync-preset.js that:
    • Check every connectors's package.json to see if there's any unexpected keys
    • Sync templates/package.json by REPLACING every template key (except dependency keys) in the current package.json with the value from the template package.json
    • Copies all config files to every connector directory
  • The hook in .pnpmfile.cjs of the project root merges dependency fields for every connector
    • Also we can update arbitrary fields in this hook, we still need to keep non-dependency fields in the connector's package.json since the hook only takes affect during pnpm i.

Caution Workspace dependencies should be defined in connector's package.json (not template) in order to let PNPM correctly resolves the workspace dependency tree;

Add a new custom field

Head to templates/sync-preset.js and update allowedCustomKeys.