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

npm/browserify compatible? #271

Closed
max-degterev opened this issue Aug 26, 2014 · 12 comments
Closed

npm/browserify compatible? #271

max-degterev opened this issue Aug 26, 2014 · 12 comments

Comments

@max-degterev
Copy link

Hi!

Is there a way to use this with npm and browserify? It seems like there are some requires that can't resolve to proper npm modules...

@brianloveswords
Copy link

I'm having the same issue. I don't know an elegant solution because of component, so I'm working on a fork that de-components everything and vendors it in node_modules under properly resolvable names.

@brianloveswords
Copy link

@suprMax as a stopgap until this issue is resolved, feel free to use this fork:

"dependencies": {
  "list.js": "git://github.com/brianloveswords/list.js#v1.1.1-commonjs"
}

@max-degterev
Copy link
Author

Cool, thanks @brianloveswords!

@ThomasG77
Copy link

+1 for Browserify if it can help make a decision

@barbalex
Copy link

+1

@javve
Copy link
Owner

javve commented May 10, 2015

Next version will be built in Browserify! Sorry for keeping you waiting.

@MarkLeMerise
Copy link

+1 (and thanks for the update)

@barbalex
Copy link

great news
love this tool

2015-05-11 3:16 GMT+02:00 Mark LeMerise notifications@github.com:

+1 (and thanks for the update)


Reply to this email directly or view it on GitHub
#271 (comment).

@MarkLeMerise
Copy link

Unfortunately, @brianloveswords stopgap repo still had the same issues for me when used with Browserify (i.e. modules not being found). Therefore, I forked the repo to create a working module with Browserify in the meantime.

My goal was to touch as little source code as possible and try to handle the majority of the work through the package.json file. I have tested it successfully with a simple list, but I can't speak for anything past that.

The only caveat is that you'll need to npm install -g napa to get some of @javve's dependencies which don't have a package.json (and thus can't be installed by npm proper).

You can import the package in the dependencies section of your package.json like so:

"list.js":"MarkLeMerise/list.js#browserify-compatible"

@sachalifs
Copy link

I am using my version of list.js with Browserify. I had to fork other repositories as well to be able to run it.

Here's the link https://github.com/slifszyc/list.js

@vincentorback
Copy link

+1

@javve
Copy link
Owner

javve commented Mar 2, 2016

v1.2.0 is now released and this should work now! Please tell me if not 😰
Release note: https://twitter.com/javve/status/705104547451170816

@javve javve closed this as completed Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants