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

provide unpkg.com/demo-selection-js #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

provide unpkg.com/demo-selection-js #32

wants to merge 1 commit into from

Conversation

tpscrpt
Copy link

@tpscrpt tpscrpt commented Nov 29, 2018

This PR implements the following:

  • Create package.json (npm package) to install tooling
  • Integrate scripts to produce browser-compatible minified scripts
  • Tell unpkg to deliver minified script when hitting https://unpkg.com/demo-selection-js

Everything should work out of the box, if you want to claim selection-js you should:

  • Have npm on your machine
  • npm adduser to signing/signup
  • change name to selection-js or similar (this will be https://unpkg.com/{name})
  • npm publish in the cloned Selection-js repo

Then, you'll be able to include the minified version in your webpages with

<script src="https://unpkg.com/{name}"></script>

And also, you can run npm publish whenever you change selection.js to automatically update the minified script.

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.

1 participant