Distribute a browser-compatible version of pampy #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
People might want to use pampy directly in a browser, which means they need a version of pampy with a good cross-browser compatibility (support of old javascript versions).
I've added Lyo as a pre-publish task, so everytime you run
npm publish
, a browser-compatible bundle of pampy will be created in a/dist
folder, and will be published to the npm registry.You can test what it does by running
npm run prepublishOnly
.I've added the dist folder to your
.gitignore
, but it's up to you to commit it if you want.Here is a preview of the bundle, and here is a simple jsFiddle to prove that it works well.
I've also added some lines of documentation in your
README
so people can use the CDN version of the bundle provided by jsDelivr.