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

feat: dependency analysis #62

Merged
merged 3 commits into from
Aug 12, 2020

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Aug 12, 2020

Towards #35

This PR adds a meta/deps.json file for each new version. Each file js and ts file in the repository is individually analyzed and then stitched into a single dependency graph.

meta/deps.json example
{
  "graph":{
     "nodes":{
        "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/deps.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/uuid/mod.ts"
           ]
        },
        "https://deno.land/std@0.64.0/uuid/mod.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/uuid/v1.ts",
              "https://deno.land/std@0.64.0/uuid/v4.ts",
              "https://deno.land/std@0.64.0/uuid/v5.ts"
           ]
        },
        "https://deno.land/std@0.64.0/uuid/v1.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/uuid/_common.ts"
           ]
        },
        "https://deno.land/std@0.64.0/uuid/_common.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/uuid/v4.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/uuid/_common.ts"
           ]
        },
        "https://deno.land/std@0.64.0/uuid/v5.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/uuid/_common.ts",
              "https://deno.land/std@0.64.0/hash/sha1.ts",
              "https://deno.land/std@0.64.0/node/util.ts",
              "https://deno.land/std@0.64.0/_util/assert.ts"
           ]
        },
        "https://deno.land/std@0.64.0/hash/sha1.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/node/util.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/node/_util/_util_promisify.ts",
              "https://deno.land/std@0.64.0/node/_util/_util_callbackify.ts",
              "https://deno.land/std@0.64.0/node/_util/_util_types.ts",
              "https://deno.land/std@0.64.0/node/_utils.ts"
           ]
        },
        "https://deno.land/std@0.64.0/node/_util/_util_promisify.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/node/_util/_util_callbackify.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/node/_util/_util_types.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/node/_utils.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/_util/assert.ts":{
           "imports":[

           ]
        },
        "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/example.ts":{
           "imports":[
              "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/mod.ts"
           ]
        },
        "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/mod.ts":{
           "imports":[
              "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/deps.ts"
           ]
        },
        "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/mod_test.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/testing/asserts.ts"
           ]
        },
        "https://deno.land/std@0.64.0/testing/asserts.ts":{
           "imports":[
              "https://deno.land/std@0.64.0/fmt/colors.ts",
              "https://deno.land/std@0.64.0/testing/diff.ts"
           ]
        },
        "https://deno.land/std@0.64.0/fmt/colors.ts":{
           "imports":[

           ]
        },
        "https://deno.land/std@0.64.0/testing/diff.ts":{
           "imports":[

           ]
        },
        "http://s3:9000/deno-registry2/ltest/versions/0.0.9/raw/subproject/mod.ts":{
           "imports":[

           ]
        }
     }
  }
}

@lucacasonato lucacasonato mentioned this pull request Aug 12, 2020
17 tasks
@lucacasonato lucacasonato requested a review from ry August 12, 2020 16:06
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucacasonato lucacasonato merged commit 7d51e32 into denoland:main Aug 12, 2020
@lucacasonato lucacasonato deleted the dependency_analysis branch August 12, 2020 18:30
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.

None yet

2 participants