https://github.com/user-attachments/assets/c4e63edb-6e98-44bc-841f-ee110ae712d4 How it works - `manifest.json` files are now committed when apps are published to our repo - to display available apps, from the server, we read into our github repo, using a pod-scoped cache - feature flagged - app installation will be behind permission gate MARKETPLACE_APPS Limitations and what is yet to develop - content and settings tabs - installed apps tab - app installation - test and potentially fix reading from .manifest.json once [Reshape manifest structure](https://github.com/twentyhq/core-team-issues/issues/2183) is done. additional work is expected on assets notably. (couldnt properly do it here as manifest.json will only be committed after this pr) - we only read in community/ folder for now - we may want tochange that - the cache is rather artisanal for now and scoped by pod - we may want to change that
50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
|
|
|
module.exports = {
|
|
schema:
|
|
(process.env.REACT_APP_SERVER_BASE_URL ?? 'http://localhost:3000') +
|
|
'/graphql',
|
|
documents: [
|
|
'./src/modules/activities/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/companies/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/people/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/opportunities/graphql/**/*.{ts,tsx}',
|
|
|
|
'./src/modules/search/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/views/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/favorites/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/spreadsheet-import/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/command-menu/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/marketplace/graphql/**/*.{ts,tsx}',
|
|
|
|
'./src/modules/prefetch/graphql/**/*.{ts,tsx}',
|
|
'./src/modules/subscription/graphql/**/*.{ts,tsx}',
|
|
|
|
'./src/modules/page-layout/graphql/**/*.{ts,tsx}',
|
|
|
|
'!./src/**/*.test.{ts,tsx}',
|
|
'!./src/**/*.stories.{ts,tsx}',
|
|
'!./src/**/__mocks__/*.ts',
|
|
],
|
|
overwrite: true,
|
|
generates: {
|
|
'./src/generated/graphql.ts': {
|
|
plugins: [
|
|
'typescript',
|
|
'typescript-operations',
|
|
'typescript-react-apollo',
|
|
],
|
|
config: {
|
|
skipTypename: false,
|
|
withHooks: true,
|
|
withHOC: false,
|
|
withComponent: false,
|
|
scalars: {
|
|
DateTime: 'string',
|
|
},
|
|
namingConvention: { enumValues: 'keep' },
|
|
},
|
|
},
|
|
},
|
|
};
|