Skip to content

add the ability to get a json list of all local packages#290

Open
yairhaimo wants to merge 2 commits into
rlidwka:masterfrom
yairhaimo:master
Open

add the ability to get a json list of all local packages#290
yairhaimo wants to merge 2 commits into
rlidwka:masterfrom
yairhaimo:master

Conversation

@yairhaimo

Copy link
Copy Markdown

Originally the '/' path returned an html that displays the list of all the local packages.
I splitted the functionality of getting the list of local packages and returning the html into two functions.
The root path '/' still behaves as before but now there is a new path '/-/library/' that returns a json of all local packages. Both paths use the same function to get the data.

@yairhaimo

Copy link
Copy Markdown
Author

hrm... build seems to fail on eslint using a deprecated --reset flag.
Any help?

@rlidwka

rlidwka commented Aug 8, 2015

Copy link
Copy Markdown
Owner

build seems to fail on eslint using a deprecated --reset flag

Fixed in 6b36177 .

@rlidwka

rlidwka commented Aug 8, 2015

Copy link
Copy Markdown
Owner

JSON of all the local packages should already be available in /-/all?local=1 endpoint (as in http://localhost:4873/-/all?local=1)

@yairhaimo

Copy link
Copy Markdown
Author

What i meant was to return only the custom packages that are published to Sinopia and not all locally installed npm packages. Is there a way to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants