2020-07-15 06:05:02 +00:00
|
|
|
## Appsmith EE
|
|
|
|
|
|
2024-08-06 14:52:22 +00:00
|
|
|
We use the `ee` alias to switch files between CE and EE to avoid conflicts
|
2023-03-20 13:34:31 +00:00
|
|
|
during regular merging.
|
2020-07-15 06:05:02 +00:00
|
|
|
|
|
|
|
|
Steps to change something for the EE version of app
|
|
|
|
|
|
2023-03-20 13:34:31 +00:00
|
|
|
- For the functionality you want to change the import statement in its consumers
|
2024-08-06 14:52:22 +00:00
|
|
|
to include the `ee` import in the _CE repo_. For eg if you want to update the ApplicationCard
|
2023-03-20 13:34:31 +00:00
|
|
|
component will update this file of ApplicationList component.
|
|
|
|
|
|
|
|
|
|
_FROM_
|
2020-07-15 06:05:02 +00:00
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
|
// ApplicationList.tsx
|
2023-03-20 13:34:31 +00:00
|
|
|
|
2020-07-15 06:05:02 +00:00
|
|
|
import ApplicationCard from "./ApplicationCard";
|
2023-03-20 13:34:31 +00:00
|
|
|
|
|
|
|
|
// OR
|
|
|
|
|
|
|
|
|
|
import ApplicationCard from "pages/Applications/ApplicationCard";
|
2020-07-15 06:05:02 +00:00
|
|
|
```
|
2023-03-20 13:34:31 +00:00
|
|
|
|
|
|
|
|
_TO_
|
|
|
|
|
|
2020-07-15 06:05:02 +00:00
|
|
|
```typescript
|
2023-03-20 13:34:31 +00:00
|
|
|
// ApplicationList.tsx
|
|
|
|
|
|
2024-08-06 14:52:22 +00:00
|
|
|
import ApplicationCard from "ee/pages/Applications/ApplicationCard";
|
2020-07-15 06:05:02 +00:00
|
|
|
```
|
|
|
|
|
|
2023-03-20 13:34:31 +00:00
|
|
|
- Create a new file inside the _EE repo_ called ApplicationCard with the same path
|
|
|
|
|
```shell script
|
|
|
|
|
$ touch app/client/src/enterprise/pages/Applications/ApplicationCard
|
|
|
|
|
```
|
2020-07-15 06:05:02 +00:00
|
|
|
- EE will now use this file, so you can export a custom ApplicationCard component for EE.
|
|
|
|
|
|
|
|
|
|
The goal is to reduce conflicts and have EE extend virtually any part of CE so selecting files to
|
2023-03-20 13:34:31 +00:00
|
|
|
update will be crucial. You should keep the following points in mind:
|
|
|
|
|
|
|
|
|
|
- NEVER update the CE file in the EE repo
|
|
|
|
|
- All the consumers of the file will need it's expected exports.
|
|
|
|
|
- You can import from the CE file and reexport from your EE if no changes are expected.
|
|
|
|
|
- The types of component props if different will cause problems in the component declaration and use.
|
2024-08-06 14:52:22 +00:00
|
|
|
You can export that out these props into the `ee` space to avoid this problem by reimplementing them in EE.
|