evanw / glfx.js

An image effects library for JavaScript using WebGL
https://evanw.github.io/glfx.js/
MIT License
3.26k stars 402 forks source link

added bower.json, package.json, and dist/glfx.js #31

Open jywarren opened 8 years ago

jywarren commented 8 years ago

For submitting to npm and bower. I plan to submit these myself, but can wait if you'd like to instead. Great library, thanks!

jywarren commented 7 years ago

Hi, just checking if you'd be willing to pull this in -- it would make it much easier to include this excellent work in other modules! Thanks!

tbranyen commented 7 years ago

I went ahead and published on npm under glfx@0.0.1. If you want access as well @jywarren I can add you. @evanw any chance you could add us as collabs to the project? Would be happy to get this in a better state for reuse.

tbranyen commented 7 years ago

I got too eager and accidentally deleted the "main" line in 0.0.1, added that back in 0.0.2. If we can get this merged, I'll open a PR that adjusts the package.json.

jywarren commented 7 years ago

hmm, sure, happy to be added, though not sure there's much else I have to offer. Thanks!

On Thu, Dec 8, 2016 at 12:02 PM, Tim Branyen notifications@github.com wrote:

I got too eager and accidentally deleted the "main" line in 0.0.1, added that back in 0.0.2. If we can get this merged, I'll open a PR that adjusts the package.json.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/evanw/glfx.js/pull/31#issuecomment-265794162, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzjtDbS5iorxjHUf3mL6IWun4c3qks5rGDgmgaJpZM4H0tpa .

tbranyen commented 7 years ago

@jywarren I was able to get the module working w/ ES/CJS/global so you can do this now:

npm install glfx@0.0.4

ES Modules:

import fx from 'gflx';

CJS:

const { canvas } = require('fx');

Global:

<script src="node_modules/glfx/glfx.js"></script>
<script>
  const canvas = window.fx.canvas():
</script>