aframevr / aframe-registry

[DISCONTINUED] Curated collection of community A-Frame components.
https://aframe.io/registry/
MIT License
77 stars 39 forks source link

unpkg lookup tool #67

Open ngokevin opened 7 years ago

ngokevin commented 7 years ago

A common workflow I have is I know a component I want, and want to grab the latest unpkg build. Normally, I type in the url unpkg.com/<npmName>/, and go through the index directory, and find the JS file to copy the link of.

I want to add a separate page that just has a search box. In the search box, you type in component names or component npm names. A list will populate providing minified JS files from unpkg.com.

e.g., Search: [log]

[Copy] https://unpkg.com/aframe-log-component@1.0.7/dist/aframe-log-component.min.js [Copy] https://unpkg.com/aframe-log-component@1.0.6/dist/aframe-log-component.min.js [Copy] https://unpkg.com/aframe-log-component@1.0.5/dist/aframe-log-component.min.js

It could live on like aframe.io/registry/search with a section for unpkg.

ngokevin commented 7 years ago

Prototype at https://ngokevin.github.io/aframe-unpkg-lookup/