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

Make the CLI init command handle auto-install in project #275

Open
riderx opened this issue May 8, 2024 · 9 comments
Open

Make the CLI init command handle auto-install in project #275

riderx opened this issue May 8, 2024 · 9 comments

Comments

@riderx
Copy link
Collaborator

riderx commented May 8, 2024

Currently, the CLI search for main file to import and call the function and install Capgo.

It could be better to have it check for the most common usecase for :

  • Nuxtjs
  • NextJs
  • SvelteKit
  • vue
  • react
  • svelte

And be able to auto find the main file and add the required line in the project.

@riderx
Copy link
Collaborator Author

riderx commented May 8, 2024

/bounty 30

Copy link

algora-pbc bot commented May 8, 2024

💎 $30 bounty • Capgo

Steps to solve:

  1. Start working: Comment /attempt #275 with your implementation plan
  2. Submit work: Create a pull request including /claim #275 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Additional notes:

ℹ️ If something is not clear ask before working on it, otherwise your chance to rework it is high
🎥 To claim you need to provide in your PR a demo video of the change
👨‍👩‍👧‍👦 Join the Discord to get help
📏 Check all Bounty rules

Thank you for contributing to Cap-go/CLI!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🔴 @Ramanakunam16 May 17, 2024, 11:53:09 AM WIP
🟡 @animeshd9 Jun 4, 2024, 8:14:58 PM WIP

@Ramanakunam16
Copy link

Ramanakunam16 commented May 17, 2024

/attempt

@webbdays
Copy link

@riderx
can you explain bit more with one of the example,
may be nextjs or react.

@riderx
Copy link
Collaborator Author

riderx commented May 18, 2024

You have the documentation here:
https://capgo.app/blog/update-your-capacitor-apps-seamlessly-using-capacitor-updater/#manual-capgo-configuration
basically it needs to add :

import { CapacitorUpdater } from '@capgo/capacitor-updater'

CapacitorUpdater.notifyAppReady()

To the main file, and be sure the framework build in static.
We already have a basic process in the app.
But it don't work for setup where there is not main file yet etc etc
So the goal here is to make it support most of setup style of each framework

Copy link

algora-pbc bot commented May 22, 2024

@Ramanakunam16: Reminder that in 5 days the bounty will become up for grabs, so please submit a pull request before then 🙏

Copy link

algora-pbc bot commented May 27, 2024

The bounty is up for grabs! Everyone is welcome to /attempt #275 🙌

@animeshd9
Copy link

animeshd9 commented Jun 4, 2024

/attempt #275
Can I take the issue

Copy link

algora-pbc bot commented Jun 9, 2024

@animeshd9: Reminder that in 5 days the bounty will become up for grabs, so please submit a pull request before then 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants