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

[RFC] Initialize a Plasmo project from an existing extension manifest #147

Closed
3 tasks done
louisgv opened this issue Aug 21, 2022 · 1 comment · Fixed by #224
Closed
3 tasks done

[RFC] Initialize a Plasmo project from an existing extension manifest #147

louisgv opened this issue Aug 21, 2022 · 1 comment · Fixed by #224
Assignees
Labels
enhancement New feature or request

Comments

@louisgv
Copy link
Contributor

louisgv commented Aug 21, 2022

How do you envision this feature/change to look/work like?

  • pnpm create plasmo OR pnpm dlx plasmo init OR plasmo init inside a directory with a manifest.json file
  • plasmo takes the manifest and determine if it's MV2 or MV3.
    • If MV3, it keeps the basic structure and convert most of the config into the package.json
    • If MV2, it convert the manifest into mv3 and throw them into package.json as much as possible, and provides guideline on how to migrate their project from there.

What is the purpose of this change/feature? Why?

  • It welcomes existing extension to convert over into Plasmo
  • It leads to a future of code as config and automated configuration, rather than static json blob. This allows seamless transition to a future MV4 in the next 10 year
  • It will ease the transition for existing mv2 extension over into mv3, and eventually to future mv4 or whatever. The framework will handles the transition for them while keeping their build target afloat, allowing developer to just focus on their product.

(OPTIONAL) Example implementations

No response

(OPTIONAL) Contact Details

No response

Verify canary release

  • I verified that the issue exists in plasmo canary release

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@louisgv louisgv added the enhancement New feature or request label Aug 21, 2022
@louisgv louisgv self-assigned this Aug 21, 2022
@louisgv
Copy link
Contributor Author

louisgv commented Aug 21, 2022

Would be cool if we can convert all the extension in https://github.com/mdn/webextensions-examples into plasmo, effectively solving mdn/webextensions-examples#496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant