-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove browser builds from source #60
Comments
Hi @imor, I fully agree with you on setting up releases for the distribution files. And thank you for all your hard work on maintaining this project 👍 UPDATE: I've created a release and modified the README to let users download from the releases page. |
Closing the issue then :) |
After this change there is no way to import this project with bower. That is really problematic. |
@vasa-chi I'm not sure what you mean exactly because I'm not too familiar with bower but if you are trying to install pathfindingjs doesn't the following command work? |
Surprisingly, it works... But the normal workflow would be to install through |
I don't like keeping release artifacts around in the source code. When I do bower install PathFinding.js why does it pull the whole source code from the git repo? What a waste. In contrast npm keeps the release artifacts in a separate database from the source repo. A release manager explicitly pushes to this database when making a release and files from only that database are fetched when doing Anyway I'm reopening this issue until a solution to this problem is found. |
I'm having this issue as well. when i perform a bower install it doesn't produce a packaged file for me to consume. May i suggest a Seperate folder structure? Also, in the time being i would suggest adding documentation on the command you just provided:
My largest issue with doing the install (like above) is that it provides a folder with the wrong name of the repository: Additionally, as you move to different minor and major versions it'll not provide the latest file. One last suggestion. Change the project from pathfinding.js -> pathfindingjs or pathfinding. This will make globbing easier: [bower_components/*.js]. |
This is kind of a 'problem' (see this discussion around a postinstall on bower - comparing to npm, where we can specify a script to run after the install) of bower. I say kind of because bower really does not expect to run a build for something as i understand. IMO the unique way of dealing with it with bower is to actually have the See jquery - Build: drop bower; use npm for front-end deps Just created a PR related: #66 |
To support bower:
|
It is now possible to install using bower install pathfinding. |
I had to add this to my bower.json :
but even so, there is no PF defined as in As a comparison, I tried easystarjs and also had to add an override to their .js file in bin/ and then |
@RichardJohnn Could you please post your folder structure i.e. where is pathfinding installed and how you import it in your webpage? |
Hi @RichardJohnn , thanks for reporting. Build 0.4.13 was broken as it it did not define the PF variable. I have released 0.4.14. Please try installing again and it should work. Thanks, |
yes, that did the trick! also, it looks like your bower.json is good to go too, the 'overrides' section in my project's bower.json is not needed anymore I'd say this issue is resolved. |
Thanks @RichardJohnn for your feedback 👍 . Closing the issue. |
Files lib/pathfinding-browser.js and lib/pathfinding-browser.min.js should be removed. These are release artefacts which should be produced only when making a release. For people to have ready access to these files they should be uploaded on the repo's release page.
Benefits of doing this are -
@qiao What do you say?
The text was updated successfully, but these errors were encountered: