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

refactor: seperate zxcvbn dependencies #628

Merged
merged 7 commits into from
Nov 4, 2023

Conversation

HosseinSalmanian
Copy link
Contributor

@HosseinSalmanian HosseinSalmanian commented Mar 23, 2023

zxcvbn implementation of IPasswordStrengthMeterService moved to second entrypoint in order to remove including zxcvbn modules into final bundle when client has custom implementation of IPasswordStrengthMeterService.

#223

zxcvbn implementation  of IPasswordStrengthMeterService moved to second entrypoint in order to remove including zxcvbn modules into final bundle when client has custom implementation of IPasswordStrengthMeterService.
Copy link
Owner

@antoantonyk antoantonyk left a comment

Choose a reason for hiding this comment

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

LGTM 👍 . Could you please merge the latest changes? This is will be a breaking change. We can release it as a new version? v7

Awesome idea and great work 🥳 .

@HosseinSalmanian
Copy link
Contributor Author

Hi @antoantonyk
I've resolved the merge conflicts.

@OneHoopyFrood
Copy link

Would be nice to see this merged.

Comment on lines -38 to -39
"@zxcvbn-ts/core": "^2.2.1",
"@zxcvbn-ts/language-en": "^2.1.0",
Copy link
Owner

Choose a reason for hiding this comment

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

@HosseinSalmanian sorry for taking this much time. but I am able to work on this week to get this change merged and published.

Could you please explain how to install the lib dependencies while developing?

Looking at this, are we going to install the lib dependencies in their corresponding folder?

Previously I had a copy of dependencies here in the root as well. So it will just compile by doing an installation in the root. But I always had a feeling it is not the best way to do it.

So, just to understand the current local build setup, are the following steps correct?

  1. npm install (root folder)
  2. cd /projects/password-strength-meter
  3. npm install (lib folder)
  4. npm run build:lib
  5. npm run serve

I did a quick search, I am not sure which one is the proper solution, I mean

Keep a duplicate/copy lib dependencies in root package.json or install everything individually.

Copy link
Owner

Choose a reason for hiding this comment

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

or do we need to use npm link?

Copy link
Owner

Choose a reason for hiding this comment

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

some details -angular/angular#43058

@antoantonyk antoantonyk merged commit 2864035 into antoantonyk:master Nov 4, 2023
7 checks passed
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.

None yet

3 participants