0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/connectors
Darcy Ye 5bb9375055
chore: add google connector default prompt (#6734)
* chore: add google connector default prompt

* fix: fix console integration tests
2024-10-24 04:27:48 +00:00
..
connector-alipay-native release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-alipay-web release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-aliyun-dm release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-aliyun-sms release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-apple release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-aws-ses release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-azuread release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-dingtalk-web release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-discord release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-facebook release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-feishu-web release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-gatewayapi-sms feat(connector): add gatewayapi connector (#6691) 2024-10-18 19:24:15 +08:00
connector-github chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-gitlab chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-google chore: add google connector default prompt (#6734) 2024-10-24 04:27:48 +00:00
connector-http-email fix(connector): add type list in readme (#6625) 2024-09-24 13:48:46 +08:00
connector-huggingface chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-kakao release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-kook chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-logto-email chore(core): guard idp-initiated sso console and api (#6690) 2024-10-22 11:14:06 +08:00
connector-logto-sms release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-logto-social-demo release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-mailgun release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-mock-email release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-mock-email-alternative release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-mock-sms release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-mock-social release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-naver release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-oauth2 chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-oidc chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-patreon chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-postmark chore(deps): update dependency nock to v14.0.0-beta.15 (#6432) 2024-10-23 15:03:31 +08:00
connector-saml release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-sendgrid-email release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-smsaero release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-smtp fix(connector): replace smtp logo (#6622) 2024-09-24 12:04:38 +08:00
connector-tencent-sms release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-twilio-sms release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-wechat-native release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-wechat-web release: version packages (#6197) 2024-08-08 13:00:14 +08:00
connector-wecom release: version packages (#6424) 2024-09-13 18:06:50 +08:00
templates ci: add check job 2024-07-28 13:55:55 +08:00
.gitignore refactor(connector): use tsup for building 2024-07-28 13:15:09 +08:00
README.md

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.