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

Repository converted to monorepo #12

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

maksimaliabyshev
Copy link

@maksimaliabyshev maksimaliabyshev commented Oct 17, 2022

Stack

pnpm workspaces + vite (ts → es, umd modules)

Why it's convenient

Now consumers won't have to modify the basic demo project and sort through jumbled SDK files

How to use

  1. Clone repo @nearpay/nearpay-sdk-monorepo
  2. cd repo folder
  3. Run in terminal pnpm install in root monorepo.
    This command will install all dependencies in all projects in the directories specified in pnpm-workspace.yaml
  4. Make build SDK pnpm -w build:sdk
  5. Create your project in the folder examples, e.g. examples/dev-partner-widget
    Go to the project directory cd dev-partner-widget.
  6. And run pnpm add @nearpay/nearpay-sdk
    This command will link the assembled SDK, with the project dev-partner-widget.

What does it get you

Now, developers are not dependent on the structure of the project, as new changes upstream can pull without breaking the structure of their project.

- pnpm, vite (es, umd)
- rollup declaration files into single file index.d.ts
@maksimaliabyshev maksimaliabyshev force-pushed the dev-reform-project branch 3 times, most recently from e132331 to c29754e Compare October 22, 2022 05:17
for easy manual testing SDK widget params
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

Successfully merging this pull request may close these issues.

1 participant