glfx.js icon indicating copy to clipboard operation
glfx.js copied to clipboard

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

Open jywarren opened this issue 8 years ago • 5 comments

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 avatar Mar 20 '16 17:03 jywarren

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!

jywarren avatar Nov 28 '16 03:11 jywarren

I went ahead and published on npm under [email protected]. 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 avatar Dec 08 '16 16:12 tbranyen

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.

tbranyen avatar Dec 08 '16 17:12 tbranyen

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 [email protected] 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 .

jywarren avatar Dec 08 '16 19:12 jywarren

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

npm install [email protected]

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>

tbranyen avatar Dec 08 '16 19:12 tbranyen