Skip to content

Instantly share code, notes, and snippets.

@reggi
Created June 14, 2018 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reggi/cc1fca5778d54242a147afa99e6f562f to your computer and use it in GitHub Desktop.
Save reggi/cc1fca5778d54242a147afa99e6f562f to your computer and use it in GitHub Desktop.

Hoping to not add to the noise, feel free to close.

In the example:

import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts"
import { log } from "./util.ts"

The test function is pulled from a url that is cached. What happens if this test url also requires something from the file-system for instance ../meow.ts. Would it simply just keep following all the URLS and build the cache of everything that is on the given domain unless it runs into an error where a dep cannot be found? It would have to pull https://unpkg.com/meow.ts. I'd love to see a "sitemap" of all the dependencies download from all the given urls.

For example:

https://unpkg.com/deno_testing@0.0.5/testing.ts
https://unpkg.com/meow.ts

What about whitelisting / blacklisting domains? What happens if down the dep tree some package is using a dependency from a domain I don't want to use. Would adding a blacklist be a good idea?

For the --reload feature. What about reloading files only from a given domain name or regex path instead of all deps?

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