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

publish as a npm package #19

Merged
merged 3 commits into from
Feb 24, 2021
Merged

publish as a npm package #19

merged 3 commits into from
Feb 24, 2021

Conversation

ninoish
Copy link
Collaborator

@ninoish ninoish commented Feb 24, 2021

Published this ui package as a npm package so that it can be installed on the builder vscode package through npm command.

Removed husky install due to npm publishing limitation. This issue is discussed below.
swagger-api/swagger-js#1911

@@ -48,11 +43,10 @@
},
"repository": "https://github.com/developerforce/lwc-builder-ui",
"scripts": {
"build": "lwc-services build -m production",
"build": "lwc-services build",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you change this ??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@albarivas

It strips all comments from LWC html files.
On lwc-builder-vscode side, it replaces <!-- CSP --> comment with vscode CSP from ui HTML file src/index.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So build cannot not be production mode. Without production flag, it doesn't strip comments.
Yes, this is not a good solution, so we will have to find out.

@@ -29,11 +29,6 @@
"npm": ">=6.4.1"
},
"homepage": "https://github.com/developerforce/lwc-builder-ui",
"husky": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you remove the hook?

Copy link
Collaborator

Choose a reason for hiding this comment

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

never mind, I just saw your comment

Copy link
Collaborator

Choose a reason for hiding this comment

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

but they say the issue is fixed now??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This way of notation in package.json for husky is for husky@v4.
After v5, husky settings are moved to .husky folder at the top level.

@albarivas albarivas merged commit 68b50c5 into main Feb 24, 2021
@albarivas albarivas deleted the kn/npm-package-dev branch February 24, 2021 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants