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

Update plugin guide to prevent some new common pitfalls #4167

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

IvanSanchez
Copy link
Member

I've seen a few developers screwing up the camelCase of the factories and committing their built/minified files to their repos, and I want to prevent that from happening in the future.

"name": "my-leaflet-plugin",
...
"scripts": {
"postinstall": "grunt build"
Copy link
Member

Choose a reason for hiding this comment

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

Actually the current best practice is to build in prepublish rather than run build on user install, so that the files get published to NPM and are available on install without devDependencies immediately.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hah, didn't know this (gotta update a couple of my plugins). Let me amend the commit.

@mourner
Copy link
Member

mourner commented Jan 22, 2016

Otherwise, 👍

mourner added a commit that referenced this pull request Jan 22, 2016
Update plugin guide to prevent some new common pitfalls
@mourner mourner merged commit ccdeb4e into master Jan 22, 2016
@mourner mourner deleted the update-plugins-guide branch January 22, 2016 11:10
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

2 participants