Skip to content
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

Upgrades to installer #497

Closed
bartlomieju opened this issue Jun 17, 2019 · 9 comments · Fixed by #512
Closed

Upgrades to installer #497

bartlomieju opened this issue Jun 17, 2019 · 9 comments · Fixed by #512

Comments

@bartlomieju
Copy link
Member

After initial landing of installer there are still a few things to upgrade:

  • support for Windows (installer support windows #496)
  • use deno fetch instead of downloading remote file or checking for local file - it will preload dependencies - better than fetching and discarding file
  • expose uninstall command
@axetroy
Copy link
Contributor

axetroy commented Jun 18, 2019

How about changing the file directory to something like this?

installer/
├── README.md
├── install.ts
├── mod.ts
├── test.ts
└── uninstall.ts

@bartlomieju
Copy link
Member Author

Yes, that was my plan, mod.ts would be entry point that does flag parsing and calls either install or uninstall

@axetroy
Copy link
Contributor

axetroy commented Jun 18, 2019

@bartlomieju
That's the problem: Where to parse the uninstall command's flag.

The command install and uninstall parse flags in mod.ts together?

@bartlomieju
Copy link
Member Author

That's the problem: Where to parse the uninstall command's flag.

The command install and uninstall parse flags in mod.ts together?

Yep:

// install
$ deno ./installer/mod.ts install file_server https://deno.land/std/http/file_server.ts --allow-net --allow-read
// uninstall
$ deno ./installer/mod.ts uninstall file_server

It can be then easily wired in Deno CLI

@axetroy
Copy link
Contributor

axetroy commented Jun 19, 2019

List items 1 and 2 are completed. Do you want to do the third item?

expose uninstall command

@bartlomieju
Copy link
Member Author

@axetroy yes I do, btw you were pinging wrong person 😅

@bardiarastin
Copy link
Contributor

Wrong person here 😅🙋🏻‍♂️❤️
just wanted to mention that I was receiving emails entire time but I wanted to act like nothing has happened 😂😬

@axetroy
Copy link
Contributor

axetroy commented Jun 19, 2019

use deno fetch instead of downloading remote file or checking for local file - it will preload

Currently using deno fetch without --reload.

This may cause the module to not update when reinstall.

@bartlomieju
Copy link
Member Author

use deno fetch instead of downloading remote file or checking for local file - it will preload

Currently using deno fetch without --reload.

This may cause the module to not update when reinstall.

This is a good idea, I'll incorporate it tonight.

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 a pull request may close this issue.

3 participants