Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add ability to build extension for ocis apps-loading #32

Merged
merged 6 commits into from
Mar 22, 2024

Conversation

saw-jan
Copy link
Member

@saw-jan saw-jan commented Feb 29, 2024

Added the option to build the extension for apps loading feature supported by ocis.

Now, to build the extension, we have a new APPS_LOADING env variable to switch between the build types.

  1. pnpm build (Default) - build for extension server
  2. APPS_LOADING=true pnpm build - extension can be loaded by oCIS using WEB_ASSET_APPS_PATH

Needs: owncloud/ocis#8523

Fixes #31, fixes #30, fixes #45

vite.config.ts Outdated Show resolved Hide resolved
@saw-jan saw-jan self-assigned this Mar 5, 2024
@saw-jan saw-jan force-pushed the fix/compatible-with-apps-loading branch 2 times, most recently from aebe76a to c17688f Compare March 21, 2024 11:38
@saw-jan saw-jan force-pushed the fix/compatible-with-apps-loading branch from c17688f to 2c83243 Compare March 22, 2024 08:56
@saw-jan saw-jan changed the title fix: make compatible with ocis apps loading and ready-to-ship build: add ability to build extension for ocis apps-loading Mar 22, 2024
@saw-jan saw-jan marked this pull request as ready for review March 22, 2024 09:01
README.md Outdated Show resolved Hide resolved
@saw-jan saw-jan requested a review from grgprarup March 22, 2024 09:53
Copy link
Contributor

@grgprarup grgprarup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@@ -0,0 +1,5 @@
{
"id": "com.github.jankaritech.web.mdpresentation",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id line should be removed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was using it in other files but yeah better move it to index.ts. Thanks

Copy link
Member Author

@saw-jan saw-jan Mar 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, No. we need it in vite config as well. Could cause trouble to put it in src/index.ts

@kulmann Does ocis process id in manifest file?
If no and if it doesn't harm then we want to keep it there.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oCIS doesn't process an id prop from the manifest.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks

@saw-jan saw-jan merged commit dcbce1f into main Mar 22, 2024
1 check passed
@saw-jan saw-jan deleted the fix/compatible-with-apps-loading branch March 22, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants