dinbror / blazy

Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
http://dinbror.dk/blazy
MIT License
2.63k stars 354 forks source link

Create NPM package #38

Closed yoyurec closed 9 years ago

yoyurec commented 10 years ago

In addition to Bower package i suggest to add other popular repository - NPM. It would be nice for Node.js users and frontenders who uses Browserify!

digitalkaoz commented 9 years ago

bump yes please!

eerikson commented 9 years ago

+1!

yoyurec commented 9 years ago

you can install NPM package from Git: npm install username/reponame Temporary use my fork (it has package.json)

npm install yoyurec/blazy --save
eerikson commented 9 years ago

That's great, thank you for doing that.

dinbror commented 9 years ago

Thanks. Its added now

yoyurec commented 9 years ago

:+1:

jDeppen commented 9 years ago

Is this the current way to install then?

npm install dinbror/blazy --save

This didn't work:

npm install blazy --save

'blazy' is not in the npm registry You should bug the author to publish it (or use the name yourself!)

NPM: [https://docs.npmjs.com/cli/publish](Publish a package)

Thanks

digitalkaoz commented 9 years ago

unfortuatnatly its not registered at npm @dinbror , this trick works: npm install --save git://github.com/dinbror/blazy

yoyurec commented 9 years ago

unfortuatnatly its not registered at npm

in addition - it has no CommonJS wrapper, only AMD & global (window) ((

dinbror commented 9 years ago

@digitalkaoz, @jDeppen: Sorry about that. It is added now:

npm install blazy --save

@yoyurec: Do you need support for commonjs? I only work with commonjs serverside. Do you use it on the client?

yoyurec commented 9 years ago

Do you need support for commonjs?

it would be good

Do you use it on the client?

yes, with browserify

jDeppen commented 9 years ago

Thanks! And thank you for this library! On Sat, Jan 31, 2015 at 2:36 PM dinbror notifications@github.com wrote:

@digitalkaoz https://github.com/digitalkaoz, @jDeppen https://github.com/jDeppen: Sorry about that. It is added now:

npm install blazy --save

@yoyurec https://github.com/yoyurec: Do you need support for commonjs? I only work with commonjs serverside. Do you use it on the client?

— Reply to this email directly or view it on GitHub https://github.com/dinbror/blazy/issues/38#issuecomment-72332598.

dinbror commented 9 years ago

yes, with browserify

Could you please test version 1.3.1 and see if everything is ok?

yoyurec commented 9 years ago

works just perfect! thanks!