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

[Feature Request] Programmatic usage (JavaScript SDK) #20

Open
SukkaW opened this issue Sep 5, 2023 · 4 comments
Open

[Feature Request] Programmatic usage (JavaScript SDK) #20

SukkaW opened this issue Sep 5, 2023 · 4 comments

Comments

@SukkaW
Copy link
Owner

SukkaW commented Sep 5, 2023

No description provided.

@DonMiller9294
Copy link

I would like to help you out, could you give a description?

@SukkaW
Copy link
Owner Author

SukkaW commented Sep 5, 2023

I would like to help you out, could you give a description?

Thanks!

I have not come up with an API design yet, but the package should work like this:

  • Can be installed through @nolyfill/sdk.
  • Given a project path:
    • It should be able to detect the preferred package manager
    • It should be able to build the dependency tree of the current project
    • It should be able to detect the nolyfill alternatives that can be applied to the current project
  • Currently, the nolyfill CLI (the nolyfill package) implements all the mentioned logics above. They should be moved to @nolyfill/sdk, and the nolyfill CLI will use the @nolyfill/sdk as a dependency.

@antfu antfu mentioned this issue Sep 5, 2023
2 tasks
@nonzzz
Copy link
Contributor

nonzzz commented Sep 5, 2023

I would like to help you out, could you give a description?

Thanks!

I have not come up with an API design yet, but the package should work like this:

  • Can be installed through @nolyfill/sdk.

  • Given a project path:

    • It should be able to detect the preferred package manager
    • It should be able to build the dependency tree of the current project
    • It should be able to detect the nolyfill alternatives that can be applied to the current project
  • Currently, the nolyfill CLI (the nolyfill package) implements all the mentioned logics above. They should be moved to @nolyfill/sdk, and the nolyfill CLI will use the @nolyfill/sdk as a dependency.

Currently, nolyfill CLI has implements all the logics ( perhaps the SDK might a lower abstraction?)
But before implement the SDK. I'm more concerned with things like npm update and pnpm,yarn dependencies tree can be processed correctly

@JounQin
Copy link

JounQin commented Jan 6, 2024

I think we should also have @nolyfill/core or @nolyfill/data for reusing in other projects like https://github.com/wojtekmaj/yarn-plugin-nolyfill

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

No branches or pull requests

4 participants