PathFinding.js
PathFinding.js copied to clipboard
Add browser release to npm
My team no longer uses bower for managing front-end dependencies and instead opted to use npm for everything. Would it be possible to add the browser release to npm? I've seen some packages do this and then offer a browser-specific export:
import pathfinding from 'pathfinding/browser';
EDIT: I've downloaded the bower release for now but it looks like it doesn't export
anything.
As @iamchristopher said Bower is now basically deprecated and their own website advises the use of alternatives. If the team is to busy to update the broser package as @iamchristopher suggested can the pathfinding browser files please be added to the main repo so it is installable via NPM. I can make the changes or help if needed.
I have temporarily forked the pathfinding-bower repo and added a package.json file to it so i can include it with NPM https://github.com/benflodge/pathfinding-bower. I suppose an alternative is to rename the https://github.com/imor/pathfinding-bower repo to pathfinding-browser and add the package.json file there. :)
+1 pls 😄
You can just pull it in from github in your package.json
"pathfinding": "git+https://github.com/qiao/PathFinding.js.git",
Then you can just
import pathfinder from 'pathfinding';