You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create version of HTMLHint for the browser only #316
Is your feature request related to a problem? Please describe.
We want to use HTMLHint in the browser, but there are many dependencies that only seem to be used for the CLI version of HTMLHint.
Describe the solution you'd like
A new npm package to be published that only includes the one file necessary to run HTMLHint in a browser.
Describe alternatives you've considered
None.
Additional context
We are shipping npm dependencies, and we want to avoid having to do a licensing review for all of the current dependencies.
@Neo-Zhixing I think there was a misunderstanding. The issue was that the htmlhint npm package includes many dependencies because of the CLI.
If we use htmllint then those dependencies end up in our desktop application (similar to an electron application) and having the extra dependencies for the CLI adds a lot of unused packages. It's also slows down builds to install the extra unused packages.
One idea would be to possible have them as separate npm packages. Some examples could be htmlhint-js + htmlhint, or htmlhint-core + htmlhint, or htmlhint +htmlhint-cli, etc.
As-is the latest package.json still lists lots of dependencies that are useful only for the CLI.
Apologies for misunderstanding.
htmlhint + htmlhint-core sounds like a good idea. However it requires a lot more work to be done, and it's probably a breaking change. I'll reopen this issue now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
PixelDust22 commentedon Feb 24, 2019
The code is now compiled into a umd package with all unnecessary dependencies removed.
See https://github.com/htmlhint/HTMLHint/wiki/Usage
rajsite commentedon Feb 24, 2019
@Neo-Zhixing I think there was a misunderstanding. The issue was that the htmlhint npm package includes many dependencies because of the CLI.
If we use htmllint then those dependencies end up in our desktop application (similar to an electron application) and having the extra dependencies for the CLI adds a lot of unused packages. It's also slows down builds to install the extra unused packages.
One idea would be to possible have them as separate npm packages. Some examples could be htmlhint-js + htmlhint, or htmlhint-core + htmlhint, or htmlhint +htmlhint-cli, etc.
As-is the latest package.json still lists lots of dependencies that are useful only for the CLI.
PixelDust22 commentedon Feb 25, 2019
Apologies for misunderstanding.
htmlhint + htmlhint-core sounds like a good idea. However it requires a lot more work to be done, and it's probably a breaking change. I'll reopen this issue now.
stale commentedon May 14, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.