PathFinding.js icon indicating copy to clipboard operation
PathFinding.js copied to clipboard

Add browser release to npm

Open jorbascrumps opened this issue 7 years ago • 3 comments

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.

jorbascrumps avatar Mar 02 '17 01:03 jorbascrumps

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. :)

benflodge avatar Jun 09 '18 13:06 benflodge

+1 pls 😄

valeriob avatar Jan 09 '19 16:01 valeriob

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';

rohan-deshpande avatar Jan 13 '19 23:01 rohan-deshpande