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

Where is pjax.js located(bower or ZIP download) ? #57

Closed
fluxxus opened this issue Jan 12, 2016 · 14 comments
Closed

Where is pjax.js located(bower or ZIP download) ? #57

fluxxus opened this issue Jan 12, 2016 · 14 comments
Labels

Comments

@fluxxus
Copy link

fluxxus commented Jan 12, 2016

Ok, this may be that I am a total idiot, cause I am a designer first and foremost, but I can't find the pjax.js file.

I've tried both the ZIP download and the bower installation, but there is no such file.

@darylteo
Copy link
Collaborator

@madebym

Current stable should be available through NPM and Bower.
Current master is available through npm at the moment by running until #55 is processed.

npm install --save git+https://github.com/moOx/pjax.git

This project was quite stagnant for awhile so some things are out of date.

Short survey: do you use bower regularly? Or have you considered using browserify/webpack or similar?

@fluxxus
Copy link
Author

fluxxus commented Jan 12, 2016

@darylteo

Thanks for the quick reply. First I want to repeat that I am a designer by trade, so I am not that good with all of this front-end automation tools. I know just enough to get by :))

So, I tried the regular ZIP download, then the bower and just now your proposed npm install --save git+https://github.com/moOx/pjax.git

The package.json and bower.json both say that the main file is located in src/pjax.js , but there is no directory called src.

Again, this may be that I really missed something obvious, but until now I haven't had any issues using bower or npm to intstall various libraries.

p.s. Yes, I use bower regularly. I've heard about browserify/webpack, but haven't used it yet. Bower is fine for my needs.

@darylteo
Copy link
Collaborator

@madebym ah okay I see the problem. At version 0.1.4 there WAS a standalone pjax.js. As of 0.2.* this was changed as Maxime split all the files up into components. As it stands, there isn't a standalone pjax.js... it needs to be compiled by a bundler like webpack or browserify.

We were just discussing whether we should be including a standalone distributed artifact. Your input would be appreciated (you can see that discussion in #55). In the meantime, @MoOx should be done with that by the end of next week (I'm just a contributor)

@fluxxus
Copy link
Author

fluxxus commented Jan 13, 2016

@darylteo

Thanks for clearing things for me. I already managed to find that 0.1.4 version which had the standalone pjax.js file, should be enough for me to play a bit with pjax.

As for the standalone distributed file, my vote is that you include it. Why set a prerequisite on being able to use this library? I bet there will be people like me that don't use any browserify/webpack/you-name-it things, but would like to use the script.

For me it is overcomplicating things where it is absolutely not needed. At least have the option of standalone file.

I just now read one interesing article, could be applied to this situation, although they are not that closely tied.
https://medium.com/@wob/the-sad-state-of-web-development-1603a861d29f#.grqx90qt1

Bottom line, just give me the file, I want to build things :))

@fluxxus fluxxus closed this as completed Jan 13, 2016
@MoOx
Copy link
Owner

MoOx commented Jan 17, 2016

Reopening. Future version won't have a versionned standalone JS. Instead we will provide a link to https://npmcdn.com

@MoOx MoOx reopened this Jan 17, 2016
@commercial-hippie
Copy link

A standalone version would be nice for people who use their own CDN.

Is there any chance someone has an example of how to concat the files using gulp? I have tried using gulp-amd-optimizer and concat but its not working out. 😞

@darylteo
Copy link
Collaborator

@commercial-hippie either webpack or browserify will work. Just point it at pjax/index.js

@MoOx MoOx closed this as completed in 34fc00c Mar 12, 2016
@MoOx
Copy link
Owner

MoOx commented Mar 12, 2016

Will be in npm and bower for now (bower main will point to this file, npm will not due to its nature)

@BlackGlory
Copy link

Obviously, Bower still not have pjax.js file, https://npmcdn.com/[email protected] same.

@leifniem
Copy link

leifniem commented Jan 1, 2017

this seems to remain an issue for now

@badoubadou
Copy link

Would love to have a standalone file too.

@davidwebca
Copy link

I'm voting to reopen as well. All building scripts seem to fail me right now and auto injection of assets fail because build version doesn't exist or can't be produced...

@acrolink
Copy link

acrolink commented Dec 3, 2017

Would any one tell us how to build that holy JS file, just include it and that is it!

@MoOx
Copy link
Owner

MoOx commented Dec 19, 2017

https://unpkg.com/pjax/pjax.js

MoOx added a commit that referenced this issue Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants