dev-ui icon indicating copy to clipboard operation
dev-ui copied to clipboard

Add and delete packages

Open Haroenv opened this issue 8 years ago • 12 comments

The endpoints already exist, but they don't stream (see also #12) correctly yet. The removal of a dependency should be done in the left sidebar, the addition in the Hit component.

There should be an output channel under the adding of dependencies for the output of the add/remove command

Things to do:

  • [x] add dependency
  • [x] remove dependency
  • [ ] specify dependency version
  • [x] show output on the bottom

Haroenv avatar Jan 04 '18 15:01 Haroenv

Version selection would be cool, too

azz avatar Jan 04 '18 16:01 azz

i added the ability to remove dependencies (see #32 )

ranfdev avatar Jan 05 '18 16:01 ranfdev

This is now done, but we still need to show the output on those tabs.

Haroenv avatar Jan 07 '18 16:01 Haroenv

I would like to add a floating terminal output in the bottom, like in visual studio code, and use that for every output

ranfdev avatar Jan 07 '18 16:01 ranfdev

That could be a good idea, but what can be on the right side for scripts then?

Haroenv avatar Jan 07 '18 16:01 Haroenv

On the right side we add the interface to add and edit scripts

ranfdev avatar Jan 07 '18 16:01 ranfdev

Or a list of scripts from node_modules? (Works with yarn)

azz avatar Jan 07 '18 16:01 azz

What do you think of this?

An idea of how the interface could be

ranfdev avatar Jan 07 '18 17:01 ranfdev

Both of those ideas look nice. If it’s node module binaries, there should be an interface to add arguments and flags probably (like jest —watch). For npm it can be done with npx maybe?

Haroenv avatar Jan 07 '18 18:01 Haroenv

Anyway, i'm doing the floating terminal, you decide what to put on the right

ranfdev avatar Jan 07 '18 18:01 ranfdev

the dependencies list should be fetched again after adding or removing dependencies

Haroenv avatar Jan 08 '18 17:01 Haroenv

The terminal should be cleared before running add/remove (weird, the code for that looks right somehow) and the terminal should be closed after adding/removing (maybe run yarn add ... && echo "some weird string to close terminal" or listen to the end of the stream)

Haroenv avatar Jan 08 '18 17:01 Haroenv